command

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(raw string, cmd *Command) error

Types

type Command

type Command struct {
	Id          string
	Type        string // add|update|remove
	Image       string
	Name        string
	Cmd         []string
	Env         []string
	Vol         []string
	ExtraHosts  []string
	Listen      string // only one port will be registerd
	Service     string // name of service
	Backend     string // name of backend
	Cluster     string
	Proto       string // tcp|http
	DockerUser  string
	DockerPswd  string
	DockerEmail string
}

func (*Command) Marshal

func (c *Command) Marshal() string

func (*Command) Process

func (c *Command) Process(dockerClient *docker.Client, etcdClient *etcd.Client, hostIp, prefix string) error

Jump to

Keyboard shortcuts

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