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
↓ 391 callers
Method
Get
(ctx context.Context, id string)
internal/github/plugin.go:45
↓ 330 callers
Method
GetAttrVal
Attempts to get attribute value, returns cty.NilVal if it's missing
plugin/dataspec/block.go:68
↓ 279 callers
Method
SetAttr
SetAttr sets the attribute value.
plugin/plugintest/blocktest.go:42
↓ 197 callers
Method
Extend
Appends all diags to diagnostics, returns true if the just-appended diagnostics contain an error.
pkg/diagnostics/diagnostics.go:50
↓ 163 callers
Method
String
(val string)
internal/misp/data_misp_events_test.go:62
↓ 158 callers
Method
Decode
Decode decodes the block and asserts diagnostics.
plugin/plugintest/blocktest.go:122
↓ 151 callers
Method
Error
()
internal/iris/client/dto.go:47
↓ 137 callers
Function
NewTestDecoder
NewTestDecoder creates a new TestDecoder. This is the preferred way to create the data for testing plugins.
plugin/plugintest/blocktest.go:92
↓ 127 callers
Method
Close
()
plugin/runner/runner.go:92
↓ 108 callers
Method
Return
Returns a token taken with Take.
pkg/parexec/limiter.go:50
↓ 101 callers
Function
NewBlock
Quickly create a new block without spec (no ranges will be assigned) Deprecated: use plugintest.NewTestDecoder instead
plugin/dataspec/block.go:28
↓ 94 callers
Method
HasErrors
HasErrors returns true if the receiver contains any diagnostics of severity DiagError.
pkg/diagnostics/diagnostics.go:57
↓ 85 callers
Method
String
String returns the full plugin name in the form '<namespace>/<name>'.
plugin/resolver/name.go:28
↓ 84 callers
Method
Parse
(ctx context.Context)
parser/definitions/global_config.go:32
↓ 76 callers
Method
Append
Appends diag to diagnostics, returns true if the just-appended diagnostic is an error.
pkg/diagnostics/diagnostics.go:23
↓ 75 callers
Method
Run
(run func())
mocks/internalpkg/github/client.go:53
↓ 73 callers
Function
SummaryContains
(substrs ...string)
pkg/diagnostics/diagtest/diagtest.go:93
↓ 73 callers
Function
renderTest
(t *testing.T, testName string, files, expectedResult []string, opts ...any)
engine/helpers_test.go:24
↓ 67 callers
Function
DetailContains
(substrs ...string)
pkg/diagnostics/diagtest/diagtest.go:100
↓ 63 callers
Method
Error
()
internal/builtin/hubapi/dto.go:26
↓ 58 callers
Method
Type
()
plugin/ast/v1/ast.pb.go:125
↓ 56 callers
Method
RetrieveData
(ctx context.Context, in *RetrieveDataRequest, opts ...grpc.CallOption)
plugin/pluginapi/v1/plugin_grpc.pb.go:33
↓ 55 callers
Method
Add
Add content to the content tree.
plugin/content.go:113
↓ 53 callers
Function
SummaryEquals
(str string)
pkg/diagnostics/diagtest/diagtest.go:138
↓ 51 callers
Function
DecodeAndAssert
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 callers
Method
Append
Append appends bytes to the source and returns corresponding segment.
plugin/ast/astsrc/astsrc.go:13
↓ 49 callers
Method
Write
Write implements io.Writer.
pkg/sloghclog/sloghclog.go:291
↓ 48 callers
Method
Empty
()
parser/definitions/vars.go:18
↓ 48 callers
Function
mustChecksum
(t *testing.T, str string)
plugin/resolver/checksum_test.go:237
↓ 47 callers
Method
Error
registryError implements the error interface.
plugin/resolver/source_remote.go:104
↓ 46 callers
Method
Range
()
parser/evaluation/evaluation.go:15
↓ 44 callers
Method
Set
(l slog.Level)
pkg/sloghclog/sloghclog.go:254
↓ 40 callers
Function
PrintString
PrintString is a helper function to print markdown content to a string.
print/mdprint/printer.go:29
↓ 39 callers
Function
mustVersion
(t *testing.T, str string)
plugin/resolver/version_test.go:11
↓ 37 callers
Method
Do
(ctx context.Context, method, path string, payload interface{})
internal/misp/client/misp_client.go:45
↓ 35 callers
Method
AssertMatch
(tb testing.TB, diags []*hcl.Diagnostic, fileMap map[string]*hcl.File)
pkg/diagnostics/diagtest/diagtest.go:169
↓ 33 callers
Method
Info
Emit a message and key/value pairs at the INFO level
pkg/sloghclog/sloghclog.go:129
↓ 32 callers
Method
Any
()
plugin/plugindata/data.go:13
↓ 32 callers
Function
file_ast_v1_ast_proto_rawDescGZIP
()
plugin/ast/v1/ast.pb.go:2410
↓ 31 callers
Method
Cleanup
()
engine/engine.go:579
↓ 30 callers
Method
DefRange
()
parser/definitions/plugin.go:22
↓ 28 callers
Method
GetBase
()
plugin/ast/v1/ast.pb.go:1225
↓ 26 callers
Function
String
(s string)
internal/nistnvd/client/client.go:13
↓ 25 callers
Function
Int
(i int)
internal/iris/client/dto.go:14
↓ 25 callers
Function
ReencodeCTY
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 callers
Method
Run
(run func(ctx context.Context, name Name))
plugin/resolver/mock_source_test.go:66
↓ 24 callers
Function
String
(s string)
internal/snyk/client/client.go:20
↓ 22 callers
Method
AsPluginData
()
plugin/content.go:58
↓ 22 callers
Function
String
(s string)
internal/elastic/kbclient/client.go:14
↓ 21 callers
Method
Debug
Emit a message and key/value pairs at the DEBUG level
pkg/sloghclog/sloghclog.go:124
↓ 21 callers
Function
Dedent
Strip common margin from the beginnings of the lines
pkg/utils/string.go:71
↓ 21 callers
Function
readBuf
(buf *bytes.Buffer)
pkg/sloghclog/sloghclog_test.go:168
↓ 20 callers
Method
Unlock
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 callers
Method
Clone
()
plugin/plugindata/data.go:64
↓ 19 callers
Method
Execute
(ctx context.Context, params *PublishParams)
plugin/publisher.go:77
↓ 19 callers
Method
With
Creates a sublogger that will always have the given key/value pairs
pkg/sloghclog/sloghclog.go:175
↓ 18 callers
Function
Bool
(b bool)
internal/hackerone/client/client.go:18
↓ 18 callers
Method
Done
()
internal/splunk/client/dto.go:57
↓ 17 callers
Function
FnMap
Produce a new slice by applying function fn to items of the slice s.
pkg/utils/slices.go:22
↓ 16 callers
Function
DetailEquals
(str string)
pkg/diagnostics/diagtest/diagtest.go:145
↓ 16 callers
Method
Kind
()
parser/definitions/plugin.go:26
↓ 16 callers
Method
Lock
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 callers
Function
String
(s string)
internal/iris/client/dto.go:10
↓ 16 callers
Method
WaitDoneAndLock
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 callers
Method
encodeBaseBlock
(node *ast.BaseBlock)
plugin/ast/v1/ast_encoder.go:100
↓ 15 callers
Method
CtyType
()
pkg/encapsulator/encoder.go:11
↓ 15 callers
Method
ExtendNodes
(nodes []*Node)
plugin/ast/v1/interfaces.go:6
↓ 15 callers
Method
Name
Returns the Name of the logger
pkg/sloghclog/sloghclog.go:221
↓ 15 callers
Function
UnmarshalJSON
(data []byte)
plugin/plugindata/data.go:114
↓ 14 callers
Function
Adapt
(logger *slog.Logger, opts ...adapterOption)
pkg/sloghclog/sloghclog.go:30
↓ 14 callers
Method
AsData
()
plugin/content.go:56
↓ 14 callers
Method
Create
(ctx context.Context, gist *gh.Gist)
internal/github/plugin.go:44
↓ 14 callers
Method
FromCty
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 callers
Method
Is
(test Constraints)
plugin/dataspec/constraint/constraint.go:14
↓ 13 callers
Function
NewElementFromMarkdown
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 callers
Method
Open
(name string)
internal/sqlite/helpers_test.go:35
↓ 13 callers
Function
ParseAny
(v any)
plugin/plugindata/data.go:130
↓ 13 callers
Function
Pop
If key in map - return corresponding value and delete it from map
pkg/utils/maps.go:19
↓ 13 callers
Method
Wait
()
internal/splunk/client/dto.go:48
↓ 12 callers
Method
AsValueMap
()
parser/defined_blocks.go:77
↓ 12 callers
Function
Bool
(b bool)
internal/nistnvd/client/client.go:17
↓ 12 callers
Method
Err
()
cmd/fabctx/fabctx.go:32
↓ 12 callers
Method
Failed
()
internal/splunk/client/dto.go:61
↓ 12 callers
Function
GetEvalContext
(ctx context.Context)
cmd/fabctx/eval_ctx.go:79
↓ 12 callers
Method
MustFromCty
MustFromCty decodes the encapsulated T from cty.Value. Panics if the value can't be decoded into T.
pkg/encapsulator/decoder.go:111
↓ 12 callers
Method
Publish
(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption)
plugin/pluginapi/v1/plugin_grpc.pb.go:35
↓ 12 callers
Method
Short
Short returns the short name part of the plugin name.
plugin/resolver/name.go:23
↓ 11 callers
Function
AddIfMissing
(m M, key K, newBlock V)
parser/defined_blocks.go:139
↓ 11 callers
Method
DefRange
()
plugin/dataspec/block.go:51
↓ 11 callers
Method
IsError
Indicate if ERROR logs would be emitted. This and the other Is* guards
pkg/sloghclog/sloghclog.go:165
↓ 11 callers
Method
Print
(ctx context.Context, w io.Writer, el plugin.Content)
print/printer.go:17
↓ 11 callers
Method
Refine
(diags Diag)
pkg/diagnostics/refine.go:9
↓ 11 callers
Method
Resolve
Resolve returns the binary path and checksums for the given plugin version.
plugin/resolver/source.go:28
↓ 11 callers
Method
String
(val string)
internal/crowdstrike/data_falcon_cspm_ioms_test.go:57
↓ 11 callers
Method
encodeBaseNode
(node *ast.BaseNode)
plugin/ast/v1/ast_encoder.go:82
↓ 11 callers
Function
mockFileDir
(t *testing.T, files []mockFile)
plugin/resolver/source_local_test.go:20
↓ 10 callers
Method
Appendf
Appendf appends formatted string to the source and returns corresponding segment.
plugin/ast/astsrc/astsrc.go:36
↓ 10 callers
Method
AsData
AsData returns the content tree as a map.
plugin/content.go:217
↓ 10 callers
Method
DecodeDiagFiles
()
plugin/plugintest/blocktest.go:136
↓ 10 callers
Method
IsRef
Whether or not the original block is a ref.
parser/definitions/plugin.go:39
next →
1–100 of 2,920, ranked by callers