MCPcopy Create free account

hub / github.com/blackstork-io/blackstork-cli / functions

Functions2,920 in github.com/blackstork-io/blackstork-cli

↓ 391 callersMethodGet
(ctx context.Context, id string)
internal/github/plugin.go:45
↓ 330 callersMethodGetAttrVal
Attempts to get attribute value, returns cty.NilVal if it's missing
plugin/dataspec/block.go:68
↓ 279 callersMethodSetAttr
SetAttr sets the attribute value.
plugin/plugintest/blocktest.go:42
↓ 197 callersMethodExtend
Appends all diags to diagnostics, returns true if the just-appended diagnostics contain an error.
pkg/diagnostics/diagnostics.go:50
↓ 163 callersMethodString
(val string)
internal/misp/data_misp_events_test.go:62
↓ 158 callersMethodDecode
Decode decodes the block and asserts diagnostics.
plugin/plugintest/blocktest.go:122
↓ 151 callersMethodError
()
internal/iris/client/dto.go:47
↓ 137 callersFunctionNewTestDecoder
NewTestDecoder creates a new TestDecoder. This is the preferred way to create the data for testing plugins.
plugin/plugintest/blocktest.go:92
↓ 127 callersMethodClose
()
plugin/runner/runner.go:92
↓ 108 callersMethodReturn
Returns a token taken with Take.
pkg/parexec/limiter.go:50
↓ 101 callersFunctionNewBlock
Quickly create a new block without spec (no ranges will be assigned) Deprecated: use plugintest.NewTestDecoder instead
plugin/dataspec/block.go:28
↓ 94 callersMethodHasErrors
HasErrors returns true if the receiver contains any diagnostics of severity DiagError.
pkg/diagnostics/diagnostics.go:57
↓ 85 callersMethodString
String returns the full plugin name in the form '<namespace>/<name>'.
plugin/resolver/name.go:28
↓ 84 callersMethodParse
(ctx context.Context)
parser/definitions/global_config.go:32
↓ 76 callersMethodAppend
Appends diag to diagnostics, returns true if the just-appended diagnostic is an error.
pkg/diagnostics/diagnostics.go:23
↓ 75 callersMethodRun
(run func())
mocks/internalpkg/github/client.go:53
↓ 73 callersFunctionSummaryContains
(substrs ...string)
pkg/diagnostics/diagtest/diagtest.go:93
↓ 73 callersFunctionrenderTest
(t *testing.T, testName string, files, expectedResult []string, opts ...any)
engine/helpers_test.go:24
↓ 67 callersFunctionDetailContains
(substrs ...string)
pkg/diagnostics/diagtest/diagtest.go:100
↓ 63 callersMethodError
()
internal/builtin/hubapi/dto.go:26
↓ 58 callersMethodType
()
plugin/ast/v1/ast.pb.go:125
↓ 56 callersMethodRetrieveData
(ctx context.Context, in *RetrieveDataRequest, opts ...grpc.CallOption)
plugin/pluginapi/v1/plugin_grpc.pb.go:33
↓ 55 callersMethodAdd
Add content to the content tree.
plugin/content.go:113
↓ 53 callersFunctionSummaryEquals
(str string)
pkg/diagnostics/diagtest/diagtest.go:138
↓ 51 callersFunctionDecodeAndAssert
Decodes a string (representing content of a config/data/content block) into cty.Value according to given spec (i.e. respecting default values) Deprec
plugin/plugintest/plugintest.go:54
↓ 50 callersMethodAppend
Append appends bytes to the source and returns corresponding segment.
plugin/ast/astsrc/astsrc.go:13
↓ 49 callersMethodWrite
Write implements io.Writer.
pkg/sloghclog/sloghclog.go:291
↓ 48 callersMethodEmpty
()
parser/definitions/vars.go:18
↓ 48 callersFunctionmustChecksum
(t *testing.T, str string)
plugin/resolver/checksum_test.go:237
↓ 47 callersMethodError
registryError implements the error interface.
plugin/resolver/source_remote.go:104
↓ 46 callersMethodRange
()
parser/evaluation/evaluation.go:15
↓ 44 callersMethodSet
(l slog.Level)
pkg/sloghclog/sloghclog.go:254
↓ 40 callersFunctionPrintString
PrintString is a helper function to print markdown content to a string.
print/mdprint/printer.go:29
↓ 39 callersFunctionmustVersion
(t *testing.T, str string)
plugin/resolver/version_test.go:11
↓ 37 callersMethodDo
(ctx context.Context, method, path string, payload interface{})
internal/misp/client/misp_client.go:45
↓ 35 callersMethodAssertMatch
(tb testing.TB, diags []*hcl.Diagnostic, fileMap map[string]*hcl.File)
pkg/diagnostics/diagtest/diagtest.go:169
↓ 33 callersMethodInfo
Emit a message and key/value pairs at the INFO level
pkg/sloghclog/sloghclog.go:129
↓ 32 callersMethodAny
()
plugin/plugindata/data.go:13
↓ 32 callersFunctionfile_ast_v1_ast_proto_rawDescGZIP
()
plugin/ast/v1/ast.pb.go:2410
↓ 31 callersMethodCleanup
()
engine/engine.go:579
↓ 30 callersMethodDefRange
()
parser/definitions/plugin.go:22
↓ 28 callersMethodGetBase
()
plugin/ast/v1/ast.pb.go:1225
↓ 26 callersFunctionString
(s string)
internal/nistnvd/client/client.go:13
↓ 25 callersFunctionInt
(i int)
internal/iris/client/dto.go:14
↓ 25 callersFunctionReencodeCTY
We have a massive amount of tests that break as soon as we add schemas with default values. This function is a workaround. It reencodes provided cty.V
plugin/plugintest/plugintest.go:35
↓ 25 callersMethodRun
(run func(ctx context.Context, name Name))
plugin/resolver/mock_source_test.go:66
↓ 24 callersFunctionString
(s string)
internal/snyk/client/client.go:20
↓ 22 callersMethodAsPluginData
()
plugin/content.go:58
↓ 22 callersFunctionString
(s string)
internal/elastic/kbclient/client.go:14
↓ 21 callersMethodDebug
Emit a message and key/value pairs at the DEBUG level
pkg/sloghclog/sloghclog.go:124
↓ 21 callersFunctionDedent
Strip common margin from the beginnings of the lines
pkg/utils/string.go:71
↓ 21 callersFunctionreadBuf
(buf *bytes.Buffer)
pkg/sloghclog/sloghclog_test.go:168
↓ 20 callersMethodUnlock
Releases the exclusive access to the state captured by the `processor` func of the executor. Tasks are able to return their results to the processor f
pkg/parexec/parexec.go:63
↓ 19 callersMethodClone
()
plugin/plugindata/data.go:64
↓ 19 callersMethodExecute
(ctx context.Context, params *PublishParams)
plugin/publisher.go:77
↓ 19 callersMethodWith
Creates a sublogger that will always have the given key/value pairs
pkg/sloghclog/sloghclog.go:175
↓ 18 callersFunctionBool
(b bool)
internal/hackerone/client/client.go:18
↓ 18 callersMethodDone
()
internal/splunk/client/dto.go:57
↓ 17 callersFunctionFnMap
Produce a new slice by applying function fn to items of the slice s.
pkg/utils/slices.go:22
↓ 16 callersFunctionDetailEquals
(str string)
pkg/diagnostics/diagtest/diagtest.go:145
↓ 16 callersMethodKind
()
parser/definitions/plugin.go:26
↓ 16 callersMethodLock
Acquires exclusive access to the state captured by the `processor` func of the executor. Does _not_ prevent tasks from being scheduled or run, just pr
pkg/parexec/parexec.go:57
↓ 16 callersFunctionString
(s string)
internal/iris/client/dto.go:10
↓ 16 callersMethodWaitDoneAndLock
Wait until all scheduled parallel tasks are done (or cancelled), then acquire the lock that guarantees exclusive access to the state captured by the `
pkg/parexec/parexec.go:97
↓ 16 callersMethodencodeBaseBlock
(node *ast.BaseBlock)
plugin/ast/v1/ast_encoder.go:100
↓ 15 callersMethodCtyType
()
pkg/encapsulator/encoder.go:11
↓ 15 callersMethodExtendNodes
(nodes []*Node)
plugin/ast/v1/interfaces.go:6
↓ 15 callersMethodName
Returns the Name of the logger
pkg/sloghclog/sloghclog.go:221
↓ 15 callersFunctionUnmarshalJSON
(data []byte)
plugin/plugindata/data.go:114
↓ 14 callersFunctionAdapt
(logger *slog.Logger, opts ...adapterOption)
pkg/sloghclog/sloghclog.go:30
↓ 14 callersMethodAsData
()
plugin/content.go:56
↓ 14 callersMethodCreate
(ctx context.Context, gist *gh.Gist)
internal/github/plugin.go:44
↓ 14 callersMethodFromCty
FromCty decodes the encapsulated T from cty.Value. Returns an error if the value can't be decoded into T.
pkg/encapsulator/decoder.go:100
↓ 13 callersMethodIs
(test Constraints)
plugin/dataspec/constraint/constraint.go:14
↓ 13 callersFunctionNewElementFromMarkdown
NewElementFromMarkdown creates a new content element from a markdown string. Deprecated: opt in to working with the new AST by using [NewElement] ins
plugin/content.go:272
↓ 13 callersMethodOpen
(name string)
internal/sqlite/helpers_test.go:35
↓ 13 callersFunctionParseAny
(v any)
plugin/plugindata/data.go:130
↓ 13 callersFunctionPop
If key in map - return corresponding value and delete it from map
pkg/utils/maps.go:19
↓ 13 callersMethodWait
()
internal/splunk/client/dto.go:48
↓ 12 callersMethodAsValueMap
()
parser/defined_blocks.go:77
↓ 12 callersFunctionBool
(b bool)
internal/nistnvd/client/client.go:17
↓ 12 callersMethodErr
()
cmd/fabctx/fabctx.go:32
↓ 12 callersMethodFailed
()
internal/splunk/client/dto.go:61
↓ 12 callersFunctionGetEvalContext
(ctx context.Context)
cmd/fabctx/eval_ctx.go:79
↓ 12 callersMethodMustFromCty
MustFromCty decodes the encapsulated T from cty.Value. Panics if the value can't be decoded into T.
pkg/encapsulator/decoder.go:111
↓ 12 callersMethodPublish
(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption)
plugin/pluginapi/v1/plugin_grpc.pb.go:35
↓ 12 callersMethodShort
Short returns the short name part of the plugin name.
plugin/resolver/name.go:23
↓ 11 callersFunctionAddIfMissing
(m M, key K, newBlock V)
parser/defined_blocks.go:139
↓ 11 callersMethodDefRange
()
plugin/dataspec/block.go:51
↓ 11 callersMethodIsError
Indicate if ERROR logs would be emitted. This and the other Is* guards
pkg/sloghclog/sloghclog.go:165
↓ 11 callersMethodPrint
(ctx context.Context, w io.Writer, el plugin.Content)
print/printer.go:17
↓ 11 callersMethodRefine
(diags Diag)
pkg/diagnostics/refine.go:9
↓ 11 callersMethodResolve
Resolve returns the binary path and checksums for the given plugin version.
plugin/resolver/source.go:28
↓ 11 callersMethodString
(val string)
internal/crowdstrike/data_falcon_cspm_ioms_test.go:57
↓ 11 callersMethodencodeBaseNode
(node *ast.BaseNode)
plugin/ast/v1/ast_encoder.go:82
↓ 11 callersFunctionmockFileDir
(t *testing.T, files []mockFile)
plugin/resolver/source_local_test.go:20
↓ 10 callersMethodAppendf
Appendf appends formatted string to the source and returns corresponding segment.
plugin/ast/astsrc/astsrc.go:36
↓ 10 callersMethodAsData
AsData returns the content tree as a map.
plugin/content.go:217
↓ 10 callersMethodDecodeDiagFiles
()
plugin/plugintest/blocktest.go:136
↓ 10 callersMethodIsRef
Whether or not the original block is a ref.
parser/definitions/plugin.go:39
next →1–100 of 2,920, ranked by callers