Documentation ¶
Index ¶
- func ConfigCreate(info *model.ConfigCreateInfo) error
- func ConfigInspect(id string) (cfg swarm.Config, raw []byte, err error)
- func ConfigList(name string, pageIndex, pageSize int) (configs []swarm.Config, totalCount int, err error)
- func ConfigRemove(ids []string) error
- func ConfigUpdate(info *model.ConfigUpdateInfo) error
- func ContainerExecAttach(id string) (resp types.HijackedResponse, err error)
- func ContainerExecCreate(id string, cmd string) (resp types.IDResponse, err error)
- func ContainerExecStart(id string) error
- func ContainerInspect(id string) (container types.ContainerJSON, err error)
- func ContainerInspectRaw(id string) (container types.ContainerJSON, raw []byte, err error)
- func ContainerList(args *model.ContainerListArgs) (infos []*model.ContainerListInfo, totalCount int, err error)
- func ContainerLogs(id string, line int, timestamps bool) (stdout, stderr *bytes.Buffer, err error)
- func ContainerRemove(id string) error
- func ImageHistory(id string) (histories []image.HistoryResponseItem, err error)
- func ImageInspect(id string) (image types.ImageInspect, raw []byte, err error)
- func ImageList(name string, pageIndex, pageSize int) (images []*model.ImageListInfo, totalCount int, err error)
- func ImageRemove(id string) error
- func NetworkCount() (count int, err error)
- func NetworkCreate(info *model.NetworkCreateInfo) error
- func NetworkDisconnect(name, container string) error
- func NetworkInspect(name string) (network types.NetworkResource, err error)
- func NetworkInspectRaw(name string) (raw []byte, err error)
- func NetworkList() (networks []types.NetworkResource, err error)
- func NetworkNames(ids ...string) (names []string, err error)
- func NetworkRemove(name string) error
- func NodeCount() (count int, err error)
- func NodeInspect(id string) (node swarm.Node, raw []byte, err error)
- func NodeList() (infos []*model.NodeListInfo, err error)
- func NodeRemove(id string) error
- func NodeUpdate(id string, info *model.NodeUpdateInfo) error
- func SecretCreate(info *model.ConfigCreateInfo) error
- func SecretInspect(id string) (secret swarm.Secret, raw []byte, err error)
- func SecretList(name string, pageIndex, pageSize int) (secrets []swarm.Secret, totalCount int, err error)
- func SecretRemove(id string) error
- func SecretUpdate(info *model.ConfigUpdateInfo) error
- func ServiceCommand(name string) (cmd string, err error)
- func ServiceCount() (count int, err error)
- func ServiceCreate(info *model.ServiceInfo) error
- func ServiceInspect(name string) (service swarm.Service, raw []byte, err error)
- func ServiceList(name string, pageIndex, pageSize int) (infos []*model.ServiceListInfo, totalCount int, err error)
- func ServiceLogs(name string, line int, timestamps bool) (stdout, stderr *bytes.Buffer, err error)
- func ServiceRemove(name string) error
- func ServiceRestart(name string) error
- func ServiceRollback(name string) error
- func ServiceScale(name string, version, count uint64) error
- func ServiceSearch(args filters.Args) (services []swarm.Service, err error)
- func ServiceUpdate(info *model.ServiceInfo) error
- func StackCount() (count int, err error)
- func StackDeploy(name, content string, authes map[string]string) error
- func StackList() (stacks []*model.Stack, err error)
- func StackRemove(name string) error
- func TaskInspect(id string) (task swarm.Task, raw []byte, err error)
- func TaskList(args *model.TaskListArgs) (infos []*model.TaskInfo, totalCount int, err error)
- func TaskLogs(id string, line int, timestamps bool) (stdout, stderr *bytes.Buffer, err error)
- func VolumeCreate(info *model.VolumeCreateInfo) error
- func VolumeInspectRaw(name string) (vol types.Volume, raw []byte, err error)
- func VolumeList(name string, pageIndex, pageSize int) (volumes []*types.Volume, totalCount int, err error)
- func VolumePrune() (report types.VolumesPruneReport, err error)
- func VolumeRemove(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigCreate ¶
func ConfigCreate(info *model.ConfigCreateInfo) error
ConfigCreate create a config.
func ConfigInspect ¶
ConfigInspect returns config information with raw data.
func ConfigList ¶
func ConfigList(name string, pageIndex, pageSize int) (configs []swarm.Config, totalCount int, err error)
ConfigList return all configs.
func ConfigUpdate ¶
func ConfigUpdate(info *model.ConfigUpdateInfo) error
ConfigUpdate update a config.
func ContainerExecAttach ¶ added in v0.8.3
func ContainerExecAttach(id string) (resp types.HijackedResponse, err error)
ContainerExecAttach attaches a connection to an exec process in the server.
func ContainerExecCreate ¶ added in v0.8.3
func ContainerExecCreate(id string, cmd string) (resp types.IDResponse, err error)
ContainerExecCreate creates an exec instance.
func ContainerExecStart ¶ added in v0.8.3
ContainerExecStart starts an exec instance.
func ContainerInspect ¶
func ContainerInspect(id string) (container types.ContainerJSON, err error)
ContainerInspect return detail information of a container.
func ContainerInspectRaw ¶
func ContainerInspectRaw(id string) (container types.ContainerJSON, raw []byte, err error)
ContainerInspectRaw return container raw information.
func ContainerList ¶
func ContainerList(args *model.ContainerListArgs) (infos []*model.ContainerListInfo, totalCount int, err error)
ContainerList return containers on the host.
func ContainerLogs ¶
ContainerLogs returns the logs generated by a container.
func ImageHistory ¶
func ImageHistory(id string) (histories []image.HistoryResponseItem, err error)
ImageHistory returns the changes in an image in history format.
func ImageInspect ¶
func ImageInspect(id string) (image types.ImageInspect, raw []byte, err error)
ImageInspect returns image information.
func ImageList ¶
func ImageList(name string, pageIndex, pageSize int) (images []*model.ImageListInfo, totalCount int, err error)
ImageList return images on the host.
func NetworkCount ¶
NetworkCount return number of networks.
func NetworkCreate ¶
func NetworkCreate(info *model.NetworkCreateInfo) error
NetworkCreate create a network.
func NetworkDisconnect ¶
NetworkDisconnect Disconnect a container from a network.
func NetworkInspect ¶
func NetworkInspect(name string) (network types.NetworkResource, err error)
NetworkInspect return network information.
func NetworkInspectRaw ¶
NetworkInspectRaw return network raw information.
func NetworkList ¶
func NetworkList() (networks []types.NetworkResource, err error)
NetworkList return all networks.
func NetworkNames ¶
NetworkNames return network names by id list.
func NodeInspect ¶
NodeInspect return node information.
func NodeList ¶
func NodeList() (infos []*model.NodeListInfo, err error)
NodeList return all swarm nodes.
func NodeUpdate ¶
func NodeUpdate(id string, info *model.NodeUpdateInfo) error
NodeUpdate update a node.
func SecretCreate ¶
func SecretCreate(info *model.ConfigCreateInfo) error
SecretCreate create a secret.
func SecretInspect ¶
SecretInspect returns secret information with raw data.
func SecretList ¶
func SecretList(name string, pageIndex, pageSize int) (secrets []swarm.Secret, totalCount int, err error)
SecretList return all secrets.
func SecretUpdate ¶
func SecretUpdate(info *model.ConfigUpdateInfo) error
SecretUpdate update a config.
func ServiceCommand ¶
ServiceCommand returns the docker command line to create this service.
func ServiceCount ¶
ServiceCount return number of services.
func ServiceCreate ¶
func ServiceCreate(info *model.ServiceInfo) error
ServiceCreate create a service.
func ServiceInspect ¶
ServiceInspect return service raw information.
func ServiceList ¶
func ServiceList(name string, pageIndex, pageSize int) (infos []*model.ServiceListInfo, totalCount int, err error)
ServiceList return service list.
func ServiceLogs ¶
ServiceLogs returns the logs generated by a service.
func ServiceRestart ¶ added in v0.8.3
ServiceRestart force to refresh a service.
func ServiceScale ¶
ServiceScale adjust replicas of a service.
func ServiceSearch ¶
ServiceSearch search services with args.
func ServiceUpdate ¶
func ServiceUpdate(info *model.ServiceInfo) error
ServiceUpdate update a service.
func StackDeploy ¶
StackDeploy deploy a stack.
func TaskInspect ¶
TaskInspect return detail information of a task.
func TaskLogs ¶
TaskLogs returns the logs generated by a task in an io.ReadCloser. It's up to the caller to close the stream.
func VolumeCreate ¶
func VolumeCreate(info *model.VolumeCreateInfo) error
VolumeCreate create a volume.
func VolumeInspectRaw ¶
VolumeInspectRaw return volume raw information.
func VolumeList ¶
func VolumeList(name string, pageIndex, pageSize int) (volumes []*types.Volume, totalCount int, err error)
VolumeList return volumes on the host.
func VolumePrune ¶
func VolumePrune() (report types.VolumesPruneReport, err error)
VolumePrune remove all unused volumes.
Types ¶
This section is empty.