interface_experimental.go 1.2 KB

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