swarmapi

package
v0.0.0-...-182d01c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

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

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

type DockerInspectResponse struct {
	IPAddress    string
	RunningState string
	ServerID     string
}

func DockerInspect

func DockerInspect(req *DockerInspectRequest) (DockerInspectResponse, error)

DockerInspect perform a Docker inspect

type DockerPsInfo

type DockerPsInfo struct {
	Name   string
	Status string
	Image  string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL