package
0.0.0-20240818021530-f5e744f7964a
Repository: https://github.com/kaisenlinux/docker.git
Documentation: pkg.go.dev
# Functions
NewManager returns a new plugin manager.
NewStore creates a Store.
WithEnv is a CreateOpt that passes the user-provided environment variables to the plugin container, de-duplicating variables with the same names case sensitively and only appends valid key=value pairs.
WithSpecMounts is a SpecOpt which appends the provided mounts to the runtime spec.
WithSwarmService is a CreateOpt that flags the passed in a plugin as a plugin managed by swarm.
# Structs
EventCreate is an event which is emitted when a plugin is created This is either by pull or create from context.
EventDisable is an event that is emitted when a plugin is disabled It maches on the passed in plugin's ID only.
EventEnable is an event that is emitted when a plugin is disabled It maches on the passed in plugin's ID only.
EventRemove is an event which is emitted when a plugin is removed It maches on the passed in plugin's ID only.
Manager controls the plugin subsystem.
ManagerConfig defines configuration needed to start new manager.
Store manages the plugin inventory in memory and on-disk.
# Interfaces
EndpointResolver provides looking up registry endpoints for pulling.
Event is emitted for actions performed on the plugin manager.
Executor is the interface that the plugin manager uses to interact with for starting/stopping plugins.
# Type aliases
CreateOpt is used to configure specific plugin details when created.
ExecutorCreator is used in the manager config to pass in an `Executor`.
SpecOpt is used for subsystems that need to modify the runtime spec of a plugin.