Versions in this module Expand all Collapse all v0 v0.1.4 Apr 26, 2020 v0.1.0 Apr 26, 2020 Changes in this version + const DefaultDockerHost — darwin/amd64, linux/amd64, windows/amd64 + var ErrRedirect = errors.New("unexpected redirect in response") + func CheckRedirect(req *http.Request, via []*http.Request) error + func ErrorConnectionFailed(host string) error + func FromEnv(c *Client) error + func IsErrConnectionFailed(err error) bool + func IsErrNotFound(err error) bool + func IsErrNotImplemented(err error) bool + func IsErrPluginPermissionDenied(err error) bool + func IsErrUnauthorized(err error) bool + func ParseHostURL(host string) (*url.URL, error) + func WithDialContext(dialContext func(ctx context.Context, network, addr string) (net.Conn, error)) func(*Client) error + func WithDialer(dialer *net.Dialer) func(*Client) error + func WithHTTPClient(client *http.Client) func(*Client) error + func WithHTTPHeaders(headers map[string]string) func(*Client) error + func WithHost(host string) func(*Client) error + func WithScheme(scheme string) func(*Client) error + func WithTLSClientConfig(cacertPath, certPath, keyPath string) func(*Client) error + func WithVersion(version string) func(*Client) error + type APIClient interface + type CheckpointAPIClient interface + CheckpointCreate func(ctx context.Context, container string, options types.CheckpointCreateOptions) error + CheckpointDelete func(ctx context.Context, container string, options types.CheckpointDeleteOptions) error + CheckpointList func(ctx context.Context, container string, options types.CheckpointListOptions) ([]types.Checkpoint, error) + type Client struct + func NewClient(host string, version string, client *http.Client, ...) (*Client, error) + func NewClientWithOpts(ops ...func(*Client) error) (*Client, error) + func NewEnvClient() (*Client, error) + func (cli *Client) BuildCachePrune(ctx context.Context, opts types.BuildCachePruneOptions) (*types.BuildCachePruneReport, error) + func (cli *Client) BuildCancel(ctx context.Context, id string) error + func (cli *Client) CheckpointCreate(ctx context.Context, container string, options types.CheckpointCreateOptions) error + func (cli *Client) CheckpointDelete(ctx context.Context, containerID string, options types.CheckpointDeleteOptions) error + func (cli *Client) CheckpointList(ctx context.Context, container string, options types.CheckpointListOptions) ([]types.Checkpoint, error) + func (cli *Client) ClientVersion() string + func (cli *Client) Close() error + func (cli *Client) ConfigCreate(ctx context.Context, config swarm.ConfigSpec) (types.ConfigCreateResponse, error) + func (cli *Client) ConfigInspectWithRaw(ctx context.Context, id string) (swarm.Config, []byte, error) + func (cli *Client) ConfigList(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) + func (cli *Client) ConfigRemove(ctx context.Context, id string) error + func (cli *Client) ConfigUpdate(ctx context.Context, id string, version swarm.Version, config swarm.ConfigSpec) error + func (cli *Client) ContainerAttach(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) + func (cli *Client) ContainerCommit(ctx context.Context, container string, options types.ContainerCommitOptions) (types.IDResponse, error) + func (cli *Client) ContainerCreate(ctx context.Context, config *container.Config, ...) (container.ContainerCreateCreatedBody, error) + func (cli *Client) ContainerDiff(ctx context.Context, containerID string) ([]container.ContainerChangeResponseItem, error) + func (cli *Client) ContainerExecAttach(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error) + func (cli *Client) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) + func (cli *Client) ContainerExecInspect(ctx context.Context, execID string) (types.ContainerExecInspect, error) + func (cli *Client) ContainerExecResize(ctx context.Context, execID string, options types.ResizeOptions) error + func (cli *Client) ContainerExecStart(ctx context.Context, execID string, config types.ExecStartCheck) error + func (cli *Client) ContainerExport(ctx context.Context, containerID string) (io.ReadCloser, error) + func (cli *Client) ContainerInspect(ctx context.Context, containerID string) (types.ContainerJSON, error) + func (cli *Client) ContainerInspectWithRaw(ctx context.Context, containerID string, getSize bool) (types.ContainerJSON, []byte, error) + func (cli *Client) ContainerKill(ctx context.Context, containerID, signal string) error + func (cli *Client) ContainerList(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) + func (cli *Client) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error) + func (cli *Client) ContainerPause(ctx context.Context, containerID string) error + func (cli *Client) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error + func (cli *Client) ContainerRename(ctx context.Context, containerID, newContainerName string) error + func (cli *Client) ContainerResize(ctx context.Context, containerID string, options types.ResizeOptions) error + func (cli *Client) ContainerRestart(ctx context.Context, containerID string, timeout *time.Duration) error + func (cli *Client) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error + func (cli *Client) ContainerStatPath(ctx context.Context, containerID, path string) (types.ContainerPathStat, error) + func (cli *Client) ContainerStats(ctx context.Context, containerID string, stream bool) (types.ContainerStats, error) + func (cli *Client) ContainerStop(ctx context.Context, containerID string, timeout *time.Duration) error + func (cli *Client) ContainerTop(ctx context.Context, containerID string, arguments []string) (container.ContainerTopOKBody, error) + func (cli *Client) ContainerUnpause(ctx context.Context, containerID string) error + func (cli *Client) ContainerUpdate(ctx context.Context, containerID string, updateConfig container.UpdateConfig) (container.ContainerUpdateOKBody, error) + func (cli *Client) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error) + func (cli *Client) ContainersPrune(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error) + func (cli *Client) CopyFromContainer(ctx context.Context, containerID, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) + func (cli *Client) CopyToContainer(ctx context.Context, containerID, dstPath string, content io.Reader, ...) error + func (cli *Client) CustomHTTPHeaders() map[string]string + func (cli *Client) DaemonHost() string + func (cli *Client) DialSession(ctx context.Context, proto string, meta map[string][]string) (net.Conn, error) + func (cli *Client) Dialer() func(context.Context) (net.Conn, error) + func (cli *Client) DiskUsage(ctx context.Context) (types.DiskUsage, error) + func (cli *Client) DistributionInspect(ctx context.Context, image, encodedRegistryAuth string) (registrytypes.DistributionInspect, error) + func (cli *Client) Events(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error) + func (cli *Client) HTTPClient() *http.Client + func (cli *Client) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) + func (cli *Client) ImageCreate(ctx context.Context, parentReference string, options types.ImageCreateOptions) (io.ReadCloser, error) + func (cli *Client) ImageHistory(ctx context.Context, imageID string) ([]image.HistoryResponseItem, error) + func (cli *Client) ImageImport(ctx context.Context, source types.ImageImportSource, ref string, ...) (io.ReadCloser, error) + func (cli *Client) ImageInspectWithRaw(ctx context.Context, imageID string) (types.ImageInspect, []byte, error) + func (cli *Client) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error) + func (cli *Client) ImageLoad(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error) + func (cli *Client) ImagePull(ctx context.Context, refStr string, options types.ImagePullOptions) (io.ReadCloser, error) + func (cli *Client) ImagePush(ctx context.Context, image string, options types.ImagePushOptions) (io.ReadCloser, error) + func (cli *Client) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error) + func (cli *Client) ImageSave(ctx context.Context, imageIDs []string) (io.ReadCloser, error) + func (cli *Client) ImageSearch(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error) + func (cli *Client) ImageTag(ctx context.Context, source, target string) error + func (cli *Client) ImagesPrune(ctx context.Context, pruneFilters filters.Args) (types.ImagesPruneReport, error) + func (cli *Client) Info(ctx context.Context) (types.Info, error) + func (cli *Client) NegotiateAPIVersion(ctx context.Context) + func (cli *Client) NegotiateAPIVersionPing(p types.Ping) + func (cli *Client) NetworkConnect(ctx context.Context, networkID, containerID string, ...) error + func (cli *Client) NetworkCreate(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error) + func (cli *Client) NetworkDisconnect(ctx context.Context, networkID, containerID string, force bool) error + func (cli *Client) NetworkInspect(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, error) + func (cli *Client) NetworkInspectWithRaw(ctx context.Context, networkID string, options types.NetworkInspectOptions) (types.NetworkResource, []byte, error) + func (cli *Client) NetworkList(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) + func (cli *Client) NetworkRemove(ctx context.Context, networkID string) error + func (cli *Client) NetworksPrune(ctx context.Context, pruneFilters filters.Args) (types.NetworksPruneReport, error) + func (cli *Client) NewVersionError(APIrequired, feature string) error + func (cli *Client) NodeInspectWithRaw(ctx context.Context, nodeID string) (swarm.Node, []byte, error) + func (cli *Client) NodeList(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) + func (cli *Client) NodeRemove(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error + func (cli *Client) NodeUpdate(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error + func (cli *Client) Ping(ctx context.Context) (types.Ping, error) + func (cli *Client) PluginCreate(ctx context.Context, createContext io.Reader, ...) error + func (cli *Client) PluginDisable(ctx context.Context, name string, options types.PluginDisableOptions) error + func (cli *Client) PluginEnable(ctx context.Context, name string, options types.PluginEnableOptions) error + func (cli *Client) PluginInspectWithRaw(ctx context.Context, name string) (*types.Plugin, []byte, error) + func (cli *Client) PluginInstall(ctx context.Context, name string, options types.PluginInstallOptions) (rc io.ReadCloser, err error) + func (cli *Client) PluginList(ctx context.Context, filter filters.Args) (types.PluginsListResponse, error) + func (cli *Client) PluginPush(ctx context.Context, name string, registryAuth string) (io.ReadCloser, error) + func (cli *Client) PluginRemove(ctx context.Context, name string, options types.PluginRemoveOptions) error + func (cli *Client) PluginSet(ctx context.Context, name string, args []string) error + func (cli *Client) PluginUpgrade(ctx context.Context, name string, options types.PluginInstallOptions) (rc io.ReadCloser, err error) + func (cli *Client) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error) + func (cli *Client) SecretCreate(ctx context.Context, secret swarm.SecretSpec) (types.SecretCreateResponse, error) + func (cli *Client) SecretInspectWithRaw(ctx context.Context, id string) (swarm.Secret, []byte, error) + func (cli *Client) SecretList(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) + func (cli *Client) SecretRemove(ctx context.Context, id string) error + func (cli *Client) SecretUpdate(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error + func (cli *Client) ServerVersion(ctx context.Context) (types.Version, error) + func (cli *Client) ServiceCreate(ctx context.Context, service swarm.ServiceSpec, ...) (types.ServiceCreateResponse, error) + func (cli *Client) ServiceInspectWithRaw(ctx context.Context, serviceID string, opts types.ServiceInspectOptions) (swarm.Service, []byte, error) + func (cli *Client) ServiceList(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) + func (cli *Client) ServiceLogs(ctx context.Context, serviceID string, options types.ContainerLogsOptions) (io.ReadCloser, error) + func (cli *Client) ServiceRemove(ctx context.Context, serviceID string) error + func (cli *Client) ServiceUpdate(ctx context.Context, serviceID string, version swarm.Version, ...) (types.ServiceUpdateResponse, error) + func (cli *Client) SetCustomHTTPHeaders(headers map[string]string) + func (cli *Client) SwarmGetUnlockKey(ctx context.Context) (types.SwarmUnlockKeyResponse, error) + func (cli *Client) SwarmInit(ctx context.Context, req swarm.InitRequest) (string, error) + func (cli *Client) SwarmInspect(ctx context.Context) (swarm.Swarm, error) + func (cli *Client) SwarmJoin(ctx context.Context, req swarm.JoinRequest) error + func (cli *Client) SwarmLeave(ctx context.Context, force bool) error + func (cli *Client) SwarmUnlock(ctx context.Context, req swarm.UnlockRequest) error + func (cli *Client) SwarmUpdate(ctx context.Context, version swarm.Version, swarm swarm.Spec, ...) error + func (cli *Client) TaskInspectWithRaw(ctx context.Context, taskID string) (swarm.Task, []byte, error) + func (cli *Client) TaskList(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) + func (cli *Client) TaskLogs(ctx context.Context, taskID string, options types.ContainerLogsOptions) (io.ReadCloser, error) + func (cli *Client) VolumeCreate(ctx context.Context, options volumetypes.VolumeCreateBody) (types.Volume, error) + func (cli *Client) VolumeInspect(ctx context.Context, volumeID string) (types.Volume, error) + func (cli *Client) VolumeInspectWithRaw(ctx context.Context, volumeID string) (types.Volume, []byte, error) + func (cli *Client) VolumeList(ctx context.Context, filter filters.Args) (volumetypes.VolumeListOKBody, error) + func (cli *Client) VolumeRemove(ctx context.Context, volumeID string, force bool) error + func (cli *Client) VolumesPrune(ctx context.Context, pruneFilters filters.Args) (types.VolumesPruneReport, error) + type CommonAPIClient interface + ClientVersion func() string + Close func() error + DaemonHost func() string + DialSession func(ctx context.Context, proto string, meta map[string][]string) (net.Conn, error) + Dialer func() func(context.Context) (net.Conn, error) + HTTPClient func() *http.Client + NegotiateAPIVersion func(ctx context.Context) + NegotiateAPIVersionPing func(types.Ping) + ServerVersion func(ctx context.Context) (types.Version, error) + type ConfigAPIClient interface + ConfigCreate func(ctx context.Context, config swarm.ConfigSpec) (types.ConfigCreateResponse, error) + ConfigInspectWithRaw func(ctx context.Context, name string) (swarm.Config, []byte, error) + ConfigList func(ctx context.Context, options types.ConfigListOptions) ([]swarm.Config, error) + ConfigRemove func(ctx context.Context, id string) error + ConfigUpdate func(ctx context.Context, id string, version swarm.Version, config swarm.ConfigSpec) error + type ContainerAPIClient interface + ContainerAttach func(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) + ContainerCommit func(ctx context.Context, container string, options types.ContainerCommitOptions) (types.IDResponse, error) + ContainerCreate func(ctx context.Context, config *containertypes.Config, ...) (containertypes.ContainerCreateCreatedBody, error) + ContainerDiff func(ctx context.Context, container string) ([]containertypes.ContainerChangeResponseItem, error) + ContainerExecAttach func(ctx context.Context, execID string, config types.ExecStartCheck) (types.HijackedResponse, error) + ContainerExecCreate func(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) + ContainerExecInspect func(ctx context.Context, execID string) (types.ContainerExecInspect, error) + ContainerExecResize func(ctx context.Context, execID string, options types.ResizeOptions) error + ContainerExecStart func(ctx context.Context, execID string, config types.ExecStartCheck) error + ContainerExport func(ctx context.Context, container string) (io.ReadCloser, error) + ContainerInspect func(ctx context.Context, container string) (types.ContainerJSON, error) + ContainerInspectWithRaw func(ctx context.Context, container string, getSize bool) (types.ContainerJSON, []byte, error) + ContainerKill func(ctx context.Context, container, signal string) error + ContainerList func(ctx context.Context, options types.ContainerListOptions) ([]types.Container, error) + ContainerLogs func(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error) + ContainerPause func(ctx context.Context, container string) error + ContainerRemove func(ctx context.Context, container string, options types.ContainerRemoveOptions) error + ContainerRename func(ctx context.Context, container, newContainerName string) error + ContainerResize func(ctx context.Context, container string, options types.ResizeOptions) error + ContainerRestart func(ctx context.Context, container string, timeout *time.Duration) error + ContainerStart func(ctx context.Context, container string, options types.ContainerStartOptions) error + ContainerStatPath func(ctx context.Context, container, path string) (types.ContainerPathStat, error) + ContainerStats func(ctx context.Context, container string, stream bool) (types.ContainerStats, error) + ContainerStop func(ctx context.Context, container string, timeout *time.Duration) error + ContainerTop func(ctx context.Context, container string, arguments []string) (containertypes.ContainerTopOKBody, error) + ContainerUnpause func(ctx context.Context, container string) error + ContainerUpdate func(ctx context.Context, container string, ...) (containertypes.ContainerUpdateOKBody, error) + ContainerWait func(ctx context.Context, container string, condition containertypes.WaitCondition) (<-chan containertypes.ContainerWaitOKBody, <-chan error) + ContainersPrune func(ctx context.Context, pruneFilters filters.Args) (types.ContainersPruneReport, error) + CopyFromContainer func(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) + CopyToContainer func(ctx context.Context, container, path string, content io.Reader, ...) error + type DistributionAPIClient interface + DistributionInspect func(ctx context.Context, image, encodedRegistryAuth string) (registry.DistributionInspect, error) + type ImageAPIClient interface + BuildCachePrune func(ctx context.Context, opts types.BuildCachePruneOptions) (*types.BuildCachePruneReport, error) + BuildCancel func(ctx context.Context, id string) error + ImageBuild func(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) + ImageCreate func(ctx context.Context, parentReference string, options types.ImageCreateOptions) (io.ReadCloser, error) + ImageHistory func(ctx context.Context, image string) ([]image.HistoryResponseItem, error) + ImageImport func(ctx context.Context, source types.ImageImportSource, ref string, ...) (io.ReadCloser, error) + ImageInspectWithRaw func(ctx context.Context, image string) (types.ImageInspect, []byte, error) + ImageList func(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error) + ImageLoad func(ctx context.Context, input io.Reader, quiet bool) (types.ImageLoadResponse, error) + ImagePull func(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) + ImagePush func(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error) + ImageRemove func(ctx context.Context, image string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error) + ImageSave func(ctx context.Context, images []string) (io.ReadCloser, error) + ImageSearch func(ctx context.Context, term string, options types.ImageSearchOptions) ([]registry.SearchResult, error) + ImageTag func(ctx context.Context, image, ref string) error + ImagesPrune func(ctx context.Context, pruneFilter filters.Args) (types.ImagesPruneReport, error) + type NetworkAPIClient interface + NetworkConnect func(ctx context.Context, network, container string, ...) error + NetworkCreate func(ctx context.Context, name string, options types.NetworkCreate) (types.NetworkCreateResponse, error) + NetworkDisconnect func(ctx context.Context, network, container string, force bool) error + NetworkInspect func(ctx context.Context, network string, options types.NetworkInspectOptions) (types.NetworkResource, error) + NetworkInspectWithRaw func(ctx context.Context, network string, options types.NetworkInspectOptions) (types.NetworkResource, []byte, error) + NetworkList func(ctx context.Context, options types.NetworkListOptions) ([]types.NetworkResource, error) + NetworkRemove func(ctx context.Context, network string) error + NetworksPrune func(ctx context.Context, pruneFilter filters.Args) (types.NetworksPruneReport, error) + type NodeAPIClient interface + NodeInspectWithRaw func(ctx context.Context, nodeID string) (swarm.Node, []byte, error) + NodeList func(ctx context.Context, options types.NodeListOptions) ([]swarm.Node, error) + NodeRemove func(ctx context.Context, nodeID string, options types.NodeRemoveOptions) error + NodeUpdate func(ctx context.Context, nodeID string, version swarm.Version, node swarm.NodeSpec) error + type PluginAPIClient interface + PluginCreate func(ctx context.Context, createContext io.Reader, ...) error + PluginDisable func(ctx context.Context, name string, options types.PluginDisableOptions) error + PluginEnable func(ctx context.Context, name string, options types.PluginEnableOptions) error + PluginInspectWithRaw func(ctx context.Context, name string) (*types.Plugin, []byte, error) + PluginInstall func(ctx context.Context, name string, options types.PluginInstallOptions) (io.ReadCloser, error) + PluginList func(ctx context.Context, filter filters.Args) (types.PluginsListResponse, error) + PluginPush func(ctx context.Context, name string, registryAuth string) (io.ReadCloser, error) + PluginRemove func(ctx context.Context, name string, options types.PluginRemoveOptions) error + PluginSet func(ctx context.Context, name string, args []string) error + PluginUpgrade func(ctx context.Context, name string, options types.PluginInstallOptions) (io.ReadCloser, error) + type SecretAPIClient interface + SecretCreate func(ctx context.Context, secret swarm.SecretSpec) (types.SecretCreateResponse, error) + SecretInspectWithRaw func(ctx context.Context, name string) (swarm.Secret, []byte, error) + SecretList func(ctx context.Context, options types.SecretListOptions) ([]swarm.Secret, error) + SecretRemove func(ctx context.Context, id string) error + SecretUpdate func(ctx context.Context, id string, version swarm.Version, secret swarm.SecretSpec) error + type ServiceAPIClient interface + ServiceCreate func(ctx context.Context, service swarm.ServiceSpec, ...) (types.ServiceCreateResponse, error) + ServiceInspectWithRaw func(ctx context.Context, serviceID string, options types.ServiceInspectOptions) (swarm.Service, []byte, error) + ServiceList func(ctx context.Context, options types.ServiceListOptions) ([]swarm.Service, error) + ServiceLogs func(ctx context.Context, serviceID string, options types.ContainerLogsOptions) (io.ReadCloser, error) + ServiceRemove func(ctx context.Context, serviceID string) error + ServiceUpdate func(ctx context.Context, serviceID string, version swarm.Version, ...) (types.ServiceUpdateResponse, error) + TaskInspectWithRaw func(ctx context.Context, taskID string) (swarm.Task, []byte, error) + TaskList func(ctx context.Context, options types.TaskListOptions) ([]swarm.Task, error) + TaskLogs func(ctx context.Context, taskID string, options types.ContainerLogsOptions) (io.ReadCloser, error) + type SwarmAPIClient interface + SwarmGetUnlockKey func(ctx context.Context) (types.SwarmUnlockKeyResponse, error) + SwarmInit func(ctx context.Context, req swarm.InitRequest) (string, error) + SwarmInspect func(ctx context.Context) (swarm.Swarm, error) + SwarmJoin func(ctx context.Context, req swarm.JoinRequest) error + SwarmLeave func(ctx context.Context, force bool) error + SwarmUnlock func(ctx context.Context, req swarm.UnlockRequest) error + SwarmUpdate func(ctx context.Context, version swarm.Version, swarm swarm.Spec, ...) error + type SystemAPIClient interface + DiskUsage func(ctx context.Context) (types.DiskUsage, error) + Events func(ctx context.Context, options types.EventsOptions) (<-chan events.Message, <-chan error) + Info func(ctx context.Context) (types.Info, error) + Ping func(ctx context.Context) (types.Ping, error) + RegistryLogin func(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error) + type VolumeAPIClient interface + VolumeCreate func(ctx context.Context, options volumetypes.VolumeCreateBody) (types.Volume, error) + VolumeInspect func(ctx context.Context, volumeID string) (types.Volume, error) + VolumeInspectWithRaw func(ctx context.Context, volumeID string) (types.Volume, []byte, error) + VolumeList func(ctx context.Context, filter filters.Args) (volumetypes.VolumeListOKBody, error) + VolumeRemove func(ctx context.Context, volumeID string, force bool) error + VolumesPrune func(ctx context.Context, pruneFilter filters.Args) (types.VolumesPruneReport, error)