Documentation
¶
Index ¶
- Constants
- Variables
- func RunExec(cmd string)
- type Option
- func WithBundleValue(d bool) Option
- func WithConstraints(s string) Option
- func WithDebugValue(d bool) Option
- func WithDockerCertPath(s string) Option
- func WithDockerImage(s string) Option
- func WithDockerSocket(s string) Option
- func WithHomedir(s string) Option
- func WithJobId(s string) Option
- func WithNodeList(nl string) Option
- func WithReplicas(rep int) Option
- func WithUser(s string) Option
- func WithUsername(s string) Option
- func WithVolumes(s string) Option
- type Options
- type SshArgs
- type Wharfie
- func (w *Wharfie) AddJobIdLabel() (err error)
- func (w *Wharfie) Connect()
- func (w *Wharfie) CreateNetwork() (id string, err error)
- func (w *Wharfie) CreateService() (err error)
- func (w *Wharfie) GetNodesFiltered() ([]swarm.Node, error)
- func (w *Wharfie) GetServiceTask(node string) (task swarm.Task, err error)
- func (w *Wharfie) GetTasks() (tasks []swarm.Task, err error)
- func (w *Wharfie) Log(level, msg string)
- func (w *Wharfie) Remove()
- func (w *Wharfie) RemoveService() (err error)
- func (w *Wharfie) RmJobIdLabel() (err error)
- func (w *Wharfie) Ssh(ctx *cli.Context)
- func (w *Wharfie) Stage()
- func (w *Wharfie) WaitForService() (err error)
Constants ¶
View Source
const ( // Debug mode. Debug = false DOCKER_API_VERSION = "v1.30" DOCKER_API_HOST = "unix:///var/run/docker.sock" DOCKER_CERT_PATH = "/etc/docker/" )
Variables ¶
View Source
var (
DOCKER_VOLUMES = []string{"/home/:/home/"}
)
Functions ¶
Types ¶
type Option ¶
type Option func(*Options)
func WithBundleValue ¶ added in v0.2.0
func WithConstraints ¶ added in v0.2.0
func WithDebugValue ¶
func WithDockerCertPath ¶
func WithDockerImage ¶ added in v0.1.0
func WithDockerSocket ¶
func WithHomedir ¶ added in v0.1.3
func WithNodeList ¶ added in v0.1.0
func WithReplicas ¶ added in v0.1.0
func WithUsername ¶ added in v0.1.3
func WithVolumes ¶ added in v0.1.0
type Wharfie ¶
type Wharfie struct {
// contains filtered or unexported fields
}
func (*Wharfie) AddJobIdLabel ¶ added in v0.1.0
func (*Wharfie) CreateNetwork ¶ added in v0.1.0
func (*Wharfie) CreateService ¶ added in v0.1.0
func (*Wharfie) GetNodesFiltered ¶ added in v0.1.0
func (*Wharfie) GetServiceTask ¶ added in v0.1.0
func (*Wharfie) RemoveService ¶ added in v0.1.0
func (*Wharfie) RmJobIdLabel ¶ added in v0.1.0
func (*Wharfie) WaitForService ¶ added in v0.1.0
Click to show internal directories.
Click to hide internal directories.