github.com/endophage/docker@v1.4.2-0.20161027011718-242853499895/client/interface_experimental.go (about) 1 package client 2 3 import ( 4 "github.com/docker/docker/api/types" 5 "golang.org/x/net/context" 6 ) 7 8 type apiClientExperimental interface { 9 CheckpointAPIClient 10 PluginAPIClient 11 } 12 13 // CheckpointAPIClient defines API client methods for the checkpoints 14 type CheckpointAPIClient interface { 15 CheckpointCreate(ctx context.Context, container string, options types.CheckpointCreateOptions) error 16 CheckpointDelete(ctx context.Context, container string, checkpointID string) error 17 CheckpointList(ctx context.Context, container string) ([]types.Checkpoint, error) 18 } 19 20 // PluginAPIClient defines API client methods for the plugins 21 type PluginAPIClient interface { 22 PluginList(ctx context.Context) (types.PluginsListResponse, error) 23 PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error 24 PluginEnable(ctx context.Context, name string) error 25 PluginDisable(ctx context.Context, name string) error 26 PluginInstall(ctx context.Context, name string, options types.PluginInstallOptions) error 27 PluginPush(ctx context.Context, name string, registryAuth string) error 28 PluginSet(ctx context.Context, name string, args []string) error 29 PluginInspectWithRaw(ctx context.Context, name string) (*types.Plugin, []byte, error) 30 }