MCPcopy Index your code
hub / github.com/chainloop-dev/chainloop / Plugin

Interface Plugin

app/cli/pkg/plugins/interface.go:23–29  ·  view source on GitHub ↗

Plugin is the interface that plugins must implement.

Source from the content-addressed store, hash-verified

21
22// Plugin is the interface that plugins must implement.
23type Plugin interface {
24 // Exec executes a command within the plugin
25 Exec(ctx context.Context, config PluginExecConfig) (*PluginExecResult, error)
26
27 // GetMetadata returns plugin metadata including commands it provides
28 GetMetadata(ctx context.Context) (PluginMetadata, error)
29}
30
31type PluginExecResult struct {
32 Output string

Callers 16

TearDownSubTestMethod · 0.65
TearDownTestMethod · 0.65
TearDownSubTestMethod · 0.65
TestListMethod · 0.65
TestCreateMethod · 0.65
TearDownSubTestMethod · 0.65
TearDownTestMethod · 0.65
validateSkipListMethod · 0.65
extractReferrersFunction · 0.65
CreateMethod · 0.65

Implementers 2

RPCClientapp/cli/pkg/plugins/client.go
RPCServerapp/cli/pkg/plugins/client.go

Calls

no outgoing calls

Tested by

no test coverage detected