github.com/getong/docker@v1.13.1/api/server/router/plugin/backend.go (about) 1 package plugin 2 3 import ( 4 "io" 5 "net/http" 6 7 enginetypes "github.com/docker/docker/api/types" 8 "github.com/docker/docker/reference" 9 "golang.org/x/net/context" 10 ) 11 12 // Backend for Plugin 13 type Backend interface { 14 Disable(name string, config *enginetypes.PluginDisableConfig) error 15 Enable(name string, config *enginetypes.PluginEnableConfig) error 16 List() ([]enginetypes.Plugin, error) 17 Inspect(name string) (*enginetypes.Plugin, error) 18 Remove(name string, config *enginetypes.PluginRmConfig) error 19 Set(name string, args []string) error 20 Privileges(ctx context.Context, ref reference.Named, metaHeaders http.Header, authConfig *enginetypes.AuthConfig) (enginetypes.PluginPrivileges, error) 21 Pull(ctx context.Context, ref reference.Named, name string, metaHeaders http.Header, authConfig *enginetypes.AuthConfig, privileges enginetypes.PluginPrivileges, outStream io.Writer) error 22 Push(ctx context.Context, name string, metaHeaders http.Header, authConfig *enginetypes.AuthConfig, outStream io.Writer) error 23 Upgrade(ctx context.Context, ref reference.Named, name string, metaHeaders http.Header, authConfig *enginetypes.AuthConfig, privileges enginetypes.PluginPrivileges, outStream io.Writer) error 24 CreateFromContext(ctx context.Context, tarCtx io.ReadCloser, options *enginetypes.PluginCreateOptions) error 25 }