MCPcopy Create free account
hub / github.com/docker/secrets-engine / Stub

Interface Stub

plugin/types.go:52–67  ·  view source on GitHub ↗

Stub is the interface the stub provides for the plugin implementation.

Source from the content-addressed store, hash-verified

50
51// Stub is the interface the stub provides for the plugin implementation.
52type Stub interface {
53 // Run starts the plugin then waits for the plugin service to exit, either due to a
54 // critical error or by cancelling the context. Calling Run() while the plugin is running,
55 // will result in an error. After the plugin service exits, Run() can safely be called again.
56 Run(context.Context) error
57
58 // RegistrationTimeout returns the registration timeout for the stub.
59 // This is the default timeout if the plugin has not been started or
60 // the timeout received in the Configure request otherwise.
61 RegistrationTimeout() time.Duration
62
63 // RequestTimeout returns the request timeout for the stub.
64 // This is the default timeout if the plugin has not been started or
65 // the timeout received in the Configure request otherwise.
66 RequestTimeout() time.Duration
67}
68
69type Config struct {
70 // Version of the plugin in semver format.

Callers 8

Test_ListPluginsFunction · 0.65
Test_VersionFunction · 0.65
Test_restoreConfigFunction · 0.65
Test_setupFunction · 0.65
TestMacosKeychainFunction · 0.65
TestUpsertFunction · 0.65

Implementers 1

stubplugin/stub.go

Calls

no outgoing calls

Tested by

no test coverage detected