Versions in this module Expand all Collapse all v1 v1.3.4 Apr 16, 2020 v1.0.0 May 17, 2020 Changes in this version + const RuntimeLinuxV1 + const RuntimeRuncV1 + const RuntimeRuncV2 + var ErrIDRegistered = errors.New("plugin: id already registered") + var ErrInvalidRequires = errors.New("invalid requires") + var ErrNoPluginID = errors.New("plugin: no id") + var ErrNoType = errors.New("plugin: no type") + var ErrSkipPlugin = errors.New("skip plugin") + func IsSkipPlugin(err error) bool + func Load(path string) (err error) + func Register(r *Registration) + type DisableFilter func(r *Registration) bool + type InitContext struct + Address string + Config interface{} + Context context.Context + Events *exchange.Exchange + Meta *Meta + Root string + State string + TTRPCAddress string + func NewContext(ctx context.Context, r *Registration, plugins *Set, root, state string) *InitContext + func (i *InitContext) Get(t Type) (interface{}, error) + func (i *InitContext) GetAll() []*Plugin + func (i *InitContext) GetByType(t Type) (map[string]*Plugin, error) + type Meta struct + Capabilities []string + Exports map[string]string + Platforms []ocispec.Platform + type Plugin struct + Config interface{} + Meta *Meta + Registration *Registration + func (p *Plugin) Err() error + func (p *Plugin) Instance() (interface{}, error) + type Registration struct + Config interface{} + Disable bool + ID string + InitFn func(*InitContext) (interface{}, error) + Requires []Type + Type Type + func Graph(filter DisableFilter) (ordered []*Registration) + func (r *Registration) Init(ic *InitContext) *Plugin + func (r *Registration) URI() string + type Service interface + Register func(*grpc.Server) error + type Set struct + func NewPluginSet() *Set + func (ps *Set) Add(p *Plugin) error + func (ps *Set) Get(t Type) (interface{}, error) + type TCPService interface + RegisterTCP func(*grpc.Server) error + type TTRPCService interface + RegisterTTRPC func(*ttrpc.Server) error + type Type string + const ContentPlugin + const DiffPlugin + const GCPlugin + const GRPCPlugin + const InternalPlugin + const MetadataPlugin + const RuntimePlugin + const RuntimePluginV2 + const ServicePlugin + const SnapshotPlugin + const TaskMonitorPlugin + func (t Type) String() string