Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blackstork-io/blackstork-cli
/ functions
Functions
2,920 in github.com/blackstork-io/blackstork-cli
⨍
Functions
2,920
◇
Types & classes
652
↓ 10 callers
Method
MkdirAll
(path string, perm os.FileMode)
internal/sqlite/helpers_test.go:54
↓ 10 callers
Function
New
Create a new parallel executor 'processor' func is called synchronously (under lock) with result of execution and idx – a monotonically increasing fr
pkg/parexec/parexec.go:43
↓ 10 callers
Method
ProvideContent
(ctx context.Context, in *ProvideContentRequest, opts ...grpc.CallOption)
plugin/pluginapi/v1/plugin_grpc.pb.go:34
↓ 10 callers
Method
SetAttr
(name string, value cty.Value)
plugin/plugintest/blocktest.go:80
↓ 10 callers
Method
String
()
plugin/dataspec/constraint/constraint.go:50
↓ 10 callers
Method
ToCty
ToCty encapsulates *T into cty.Value.
pkg/encapsulator/encoder.go:58
↓ 10 callers
Function
file_pluginapi_v1_cty_proto_rawDescGZIP
()
plugin/pluginapi/v1/cty.pb.go:789
↓ 9 callers
Function
Check
Checks if the passed in ptr was added previously.
pkg/circularRefDetector/circularRefs.go:29
↓ 9 callers
Function
DecodeAttr
Decodes hclsyntax.Attribute into a cty.Value according to the given AttrSpec. No validation is performed on the value.
plugin/dataspec/decode.go:398
↓ 9 callers
Method
GetData
()
plugin/pluginapi/v1/cty.pb.go:75
↓ 9 callers
Method
Namespace
Namespace returns the namespace part of the plugin name.
plugin/resolver/name.go:18
↓ 9 callers
Method
ParseConfig
(ctx context.Context, spec *dataspec.RootSpec)
parser/evaluation/evaluation.go:14
↓ 9 callers
Function
Plugin
(version string, logger *slog.Logger, tracer trace.Tracer)
internal/builtin/plugin.go:13
↓ 9 callers
Method
Return
(_a0 []Version, _a1 error)
plugin/resolver/mock_source_test.go:73
↓ 9 callers
Method
Return
(_a0 crowdstrike.IntelClient)
mocks/internalpkg/crowdstrike/client.go:201
↓ 8 callers
Method
AppendErr
Creates diagnostic and appends it if err != nil.
pkg/diagnostics/diagnostics.go:62
↓ 8 callers
Method
Compare
Compare compares the plugin name with another plugin name.
plugin/resolver/name.go:33
↓ 8 callers
Method
CtyType
()
parser/definitions/definitions.go:32
↓ 8 callers
Function
DecodeAndEvalBlock
Decodes hclsyntax.Block into a Block according to the given RootSpec. Deferred evaluation is performed immediatly.
plugin/dataspec/decode.go:182
↓ 8 callers
Method
Error
()
internal/virustotal/client/dto.go:26
↓ 8 callers
Function
EvalAttr
EvalAttr evaluates deferred values in the given attribute and validates it.
plugin/dataspec/decode.go:431
↓ 8 callers
Method
Go
Execute function f in parallel executor, returns the result into executor's "processor" function.
pkg/parexec/parexec.go:168
↓ 8 callers
Method
LoadPluginResolver
(ctx context.Context, includeRemote bool)
engine/engine.go:180
↓ 8 callers
Method
Meta
()
plugin/content.go:59
↓ 8 callers
Method
MissingItemRange
()
plugin/dataspec/block.go:45
↓ 8 callers
Function
New
New creates a new Engine instance with the provided options.
engine/engine.go:49
↓ 8 callers
Method
SetHeaders
SetHeaders sets the block type and labels.
plugin/plugintest/blocktest.go:64
↓ 8 callers
Function
StringPtr
(s string)
internal/builtin/data_http.go:119
↓ 8 callers
Function
decodeCtyValue
(src *CtyValue)
plugin/pluginapi/v1/cty_decoder.go:37
↓ 8 callers
Function
encodeCtyValue
(val cty.Value)
plugin/pluginapi/v1/cty_encoder.go:63
↓ 8 callers
Function
file_pluginapi_v1_plugin_proto_rawDescGZIP
()
plugin/pluginapi/v1/plugin.pb.go:518
↓ 8 callers
Function
mustConstraint
(t *testing.T, str string)
plugin/resolver/version_test.go:129
↓ 7 callers
Function
Add
Adds pointer to circular reference detection. refRange is optional.
pkg/circularRefDetector/circularRefs.go:23
↓ 7 callers
Method
Add
Add new diagnostic error.
pkg/diagnostics/diagnostics.go:32
↓ 7 callers
Function
AddPath
Stores path in hcl.Diagnostic.Extra, or via Diag.Refine. Add path, prepending if any already exist.
pkg/diagnostics/path.go:69
↓ 7 callers
Function
ApplyVars
Evaluates `variables` and stores the results in `dataCtx` under the key "vars".
eval/vars.go:31
↓ 7 callers
Method
AsMarkdownSrc
AsMarkdownSrc returns the markdown source of the content element. Deprecated: opt in to working with the new AST by using .AsNode()
plugin/content.go:298
↓ 7 callers
Method
Datasource
()
internal/crowdstrike/data_falcon_detection_details_test.go:44
↓ 7 callers
Method
Execute
(dataCtx plugindata.Map)
eval/evaluator.go:169
↓ 7 callers
Method
GetValue
()
plugin/pluginapi/v1/cty.pb.go:322
↓ 7 callers
Function
GoWithArg
Transforms fn (func from I to T) into func(I) that executes in [Executor] and returns the result T into executor's "processor" function.
pkg/parexec/parexec.go:178
↓ 7 callers
Method
LoadPluginRunner
(ctx context.Context)
engine/engine.go:247
↓ 7 callers
Method
Lookup
Lookup returns a list of available versions for the given plugin.
plugin/resolver/source.go:26
↓ 7 callers
Function
New
New creates a new markdown printer.
print/mdprint/printer.go:24
↓ 7 callers
Function
NewResolver
NewResolver creates a new plugin resolver.
plugin/resolver/resolver.go:22
↓ 7 callers
Method
String
(val string)
internal/crowdstrike/data_falcon_vulnerabilities_test.go:65
↓ 7 callers
Method
String
()
cmd/validations.go:29
↓ 7 callers
Method
Value
(v any)
cmd/fabctx/fabctx.go:57
↓ 7 callers
Method
Warn
Emit a message and key/value pairs at the WARN level
pkg/sloghclog/sloghclog.go:134
↓ 7 callers
Function
WithSources
WithSources sets the sources for the resolver.
plugin/resolver/options.go:35
↓ 7 callers
Function
bubbleWrap
bubbleWrap wraps an error in a bubbleError and returns it (not panics).
plugin/ast/v1/bubble_error.go:17
↓ 7 callers
Function
file_pluginapi_v1_content_proto_rawDescGZIP
()
plugin/pluginapi/v1/content.pb.go:460
↓ 7 callers
Function
levelToSlog
(level hclog.Level)
pkg/sloghclog/sloghclog.go:71
↓ 7 callers
Method
mock
(fn http.HandlerFunc, tkn string)
internal/virustotal/client/client_test.go:31
↓ 7 callers
Method
mock
(fn http.HandlerFunc, tkn string)
internal/splunk/client/client_test.go:30
↓ 7 callers
Function
mustBase64
(t *testing.T, s string)
plugin/resolver/checksum_test.go:15
↓ 7 callers
Function
mustName
(t *testing.T, str string)
plugin/resolver/name_test.go:10
↓ 6 callers
Function
AssertNoErrors
(tb testing.TB, diags []*hcl.Diagnostic, fileMap map[string]*hcl.File, msgs ...any)
pkg/diagnostics/diagtest/diagtest.go:241
↓ 6 callers
Method
BlockSpec
()
plugin/dataspec/root_spec.go:43
↓ 6 callers
Method
Datasource
()
internal/crowdstrike/data_falcon_discover_host_details_test.go:53
↓ 6 callers
Method
Datasource
()
internal/crowdstrike/data_falcon_vulnerabilities_test.go:61
↓ 6 callers
Method
Datasource
()
internal/crowdstrike/data_falcon_intel_indicators_test.go:49
↓ 6 callers
Method
EXPECT
()
plugin/resolver/mock_source_test.go:20
↓ 6 callers
Function
FnMapErr
Produce a new slice by applying (possibly erroring) function fn to items of the slice s. Returns on the first error with nil slice.
pkg/utils/slices.go:35
↓ 6 callers
Method
GetArgs
()
plugin/pluginapi/v1/plugin.pb.go:393
↓ 6 callers
Method
GetChildren
()
plugin/ast/v1/ast.pb.go:323
↓ 6 callers
Method
GetConfig
()
plugin/pluginapi/v1/plugin.pb.go:400
↓ 6 callers
Method
GetDoc
()
plugin/pluginapi/v1/schema.pb.go:204
↓ 6 callers
Method
GetHCLBlock
()
parser/definitions/definitions.go:31
↓ 6 callers
Method
ImpliedArgs
ImpliedArgs returns With key/value pairs
pkg/sloghclog/sloghclog.go:170
↓ 6 callers
Method
ParsePlugin
Evaluates a defined plugin.
parser/parse_plugin.go:21
↓ 6 callers
Function
Plugin
(version string, loader ClientLoadFn)
internal/iris/plugin.go:19
↓ 6 callers
Function
Remove
Removes pointer from circular reference detection and appends the backtrace to the diagnostic marked by ExtraMarker (if it exists).
pkg/circularRefDetector/circularRefs.go:37
↓ 6 callers
Function
RootSpecFromBlock
(b *BlockSpec)
plugin/dataspec/root_spec.go:8
↓ 6 callers
Method
Scan
(value any)
internal/sqlite/data_sqlite.go:174
↓ 6 callers
Function
String
(s string)
internal/atlassian/client/dto.go:7
↓ 6 callers
Method
Type
()
plugin/pluginapi/v1/schema.pb.go:112
↓ 6 callers
Method
ValidateSpec
()
plugin/dataspec/root_spec.go:82
↓ 6 callers
Function
WithQueryFuncs
Adds "query_jq" function to the eval context
plugin/dataspec/deferred/jq.go:55
↓ 6 callers
Function
boolPtr
(b bool)
internal/stixview/content_stixview.go:179
↓ 6 callers
Function
bubbleUp
bubbleUp wraps an error in a bubbleError and panics it.
plugin/ast/v1/bubble_error.go:22
↓ 6 callers
Function
decodeBlock
(src *Block)
plugin/pluginapi/v1/dataspec_decoder.go:100
↓ 6 callers
Function
decodeBlockSpec
(src *BlockSpec)
plugin/pluginapi/v1/dataspec_decoder.go:51
↓ 6 callers
Function
dumpAttrNames
(spec *dataspec.RootSpec)
tools/docgen/main.go:155
↓ 6 callers
Method
enabled
(level slog.Level)
pkg/sloghclog/sloghclog.go:99
↓ 6 callers
Function
encodeBlock
(src *dataspec.Block)
plugin/pluginapi/v1/dataspec_encoder.go:86
↓ 6 callers
Function
encodeRange
(src *hcl.Range)
plugin/pluginapi/v1/hcl_encoder.go:34
↓ 6 callers
Function
encodeRootSpec
(src *dataspec.RootSpec)
plugin/pluginapi/v1/dataspec_encoder.go:36
↓ 6 callers
Function
file_pluginapi_v1_dataspec_proto_rawDescGZIP
()
plugin/pluginapi/v1/dataspec.pb.go:576
↓ 6 callers
Function
file_pluginapi_v1_schema_proto_rawDescGZIP
()
plugin/pluginapi/v1/schema.pb.go:495
↓ 6 callers
Method
log
(level hclog.Level, msg string, args ...interface{})
pkg/sloghclog/sloghclog.go:103
↓ 6 callers
Function
logDataBlockValue
(value *dataspec.Block)
plugin/logging.go:94
↓ 6 callers
Method
mock
(fn http.HandlerFunc)
internal/builtin/data_http_test.go:44
↓ 6 callers
Function
newMockSource
newMockSource creates a new instance of mockSource. It also registers a testing interface on the mock and a cleanup function to assert the mocks expec
plugin/resolver/mock_source_test.go:146
↓ 6 callers
Function
parseScope
(datactx plugindata.Map)
internal/builtin/content_helpers.go:32
↓ 6 callers
Function
prepareTestDB
(tb testing.TB, data testData)
internal/sqlite/helpers_test.go:65
↓ 6 callers
Function
traceback
(r any, step cty.PathStep)
plugin/pluginapi/v1/cty_encoder.go:19
↓ 5 callers
Method
CtyTypeEqual
(ty cty.Type)
pkg/encapsulator/encoder.go:12
↓ 5 callers
Method
Datasource
()
internal/misp/data_misp_events_test.go:42
↓ 5 callers
Method
DatasourceName
()
internal/crowdstrike/data_falcon_vulnerabilities_test.go:57
← previous
next →
101–200 of 2,920, ranked by callers