Documentation
¶
Overview ¶
Package swarmapi is a wrapper around the docker api We use this package to interact with the Swarm manager which proxies docker API calls to the various nodes in the Swarm of docker nodes
Index ¶
- type DockerInfoResponse
- type DockerInspectRequest
- type DockerInspectResponse
- type DockerPsInfo
- type DockerPsResponse
- type DockerRemoveRequest
- type DockerRemoveResponse
- type DockerRunRequest
- type DockerRunResponse
- type DockerStartRequest
- type DockerStartResponse
- type DockerStopRequest
- type DockerStopResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerInfoResponse ¶
type DockerInfoResponse struct {
Output []string
}
func DockerInfo ¶
func DockerInfo() (DockerInfoResponse, error)
type DockerInspectRequest ¶
type DockerInspectRequest struct {
ContainerName string
}
type DockerInspectResponse ¶
func DockerInspect ¶
func DockerInspect(req *DockerInspectRequest) (DockerInspectResponse, error)
DockerInspect perform a Docker inspect
type DockerPsInfo ¶
type DockerPsResponse ¶
type DockerPsResponse struct {
Output []DockerPsInfo
}
func DockerPs ¶
func DockerPs(serverid string) (DockerPsResponse, error)
type DockerRemoveRequest ¶
type DockerRemoveRequest struct {
ContainerName string
}
type DockerRemoveResponse ¶
type DockerRemoveResponse struct {
Output string
}
func DockerRemove ¶
func DockerRemove(req *DockerRemoveRequest) (DockerRemoveResponse, error)
DockerRemove perform a Docker remove
type DockerRunRequest ¶
type DockerRunRequest struct { CPU string MEM string ClusterID string ServerID string ProjectID string Image string IPAddress string Standalone string PGDataPath string ContainerName string ContainerType string CommandOutput string CommandPath string Profile string Token string EnvVars map[string]string RestoreJob string RestoreRemotePath string RestoreRemoteHost string RestoreRemoteUser string RestoreDbUser string RestoreDbPass string RestoreSet string }
type DockerRunResponse ¶
type DockerRunResponse struct {
ID string
}
func DockerRun ¶
func DockerRun(req *DockerRunRequest) (DockerRunResponse, error)
DockerRun perform a docker run
type DockerStartRequest ¶
type DockerStartRequest struct {
ContainerName string
}
type DockerStartResponse ¶
type DockerStartResponse struct {
Output string
}
func DockerStart ¶
func DockerStart(req *DockerStartRequest) (DockerStartResponse, error)
DockerStart perform a docker start
type DockerStopRequest ¶
type DockerStopRequest struct {
ContainerName string
}
type DockerStopResponse ¶
type DockerStopResponse struct {
Output string
}
func DockerStop ¶
func DockerStop(req *DockerStopRequest) (DockerStopResponse, error)
DockerStop perform a docker stop
Click to show internal directories.
Click to hide internal directories.