Versions in this module Expand all Collapse all v0 v0.2.5 Sep 1, 2016 Changes in this version + const APP_HOME_KEY + const APP_NAMESPACE_KEY + const APP_NAME_KEY + const CATEGORY_KEY + const EXTRA_HOSTS_KEY + const FLAGS_KEY + const HotDeployable + const PLUGIN_KEY + const SERVICE_DEPENDS_KEY + const SERVICE_NAME_KEY + var ErrCircularReference = errors.New("Circular reference detected") + func ResolveServiceDependencies(cs []*Container) error + func SplitNames(name string) (string, string, string) + func TSort(G []*node) ([]*node, error) + type Container struct + Name string + Namespace string + func (c *Container) ActiveState(ctx context.Context) manifest.ActiveState + func (c *Container) AddHost(ctx context.Context, host string, more ...string) error + func (c *Container) Category() manifest.Category + func (c *Container) DataDir() string + func (c *Container) DependsOn() []string + func (c *Container) Deploy(ctx context.Context, path string) error + func (c *Container) DeployDir() string + func (c *Container) Destroy(ctx context.Context) error + func (c *Container) EnvDir() string + func (c *Container) Exec(ctx context.Context, user string, stdin io.Reader, stdout, stderr io.Writer, ...) error + func (c *Container) ExecE(ctx context.Context, user string, in io.Reader, out io.Writer, cmd ...string) error + func (c *Container) ExecQ(ctx context.Context, user string, cmd ...string) error + func (c *Container) FQDN() string + func (c *Container) Flags() uint32 + func (c *Container) GetHosts(ctx context.Context) []string + func (c *Container) GetInfo(ctx context.Context) (*manifest.SandboxInfo, error) + func (c *Container) Getenv(ctx context.Context, name string) (string, error) + func (c *Container) Home() string + func (c *Container) Hostname() string + func (c *Container) IP() (ip string) + func (c *Container) Install(ctx context.Context, source string) error + func (c *Container) LogDir() string + func (c *Container) PluginTag() string + func (c *Container) RemoveHost(ctx context.Context, host string, more ...string) error + func (c *Container) RepoDir() string + func (c *Container) Restart(ctx context.Context) error + func (c *Container) ServiceName() string + func (c *Container) Setenv(ctx context.Context, name, value string) error + func (c *Container) Start(ctx context.Context) error + func (c *Container) Stop(ctx context.Context) error + func (c *Container) Subst(ctx context.Context, user string, in io.Reader, cmd ...string) (string, error) + func (c *Container) User() string + type CreateOptions struct + Capacity string + Env map[string]string + Flags uint32 + Home string + Hosts []string + Image string + Logger io.Writer + Name string + Namespace string + Network string + Plugin *manifest.Plugin + Repo string + Scaling int + Secret string + ServiceName string + User string + type DockerClient struct + func NewClient(cli *client.Client) DockerClient + func NewEnvClient() (DockerClient, error) + func (cli DockerClient) Create(ctx context.Context, opts CreateOptions) ([]*Container, error) + func (cli DockerClient) CreateBuilder(ctx context.Context, opts CreateOptions) (c *Container, err error) + func (cli DockerClient) FindAll(ctx context.Context, name, namespace string) ([]*Container, error) + func (cli DockerClient) FindApplications(ctx context.Context, name, namespace string) ([]*Container, error) + func (cli DockerClient) FindService(ctx context.Context, name, namespace, service string) ([]*Container, error) + func (cli DockerClient) Inspect(ctx context.Context, id string) (*Container, error) + type JSONError struct + Code int + Message string + func (e *JSONError) Error() string + type JSONMessage struct + Aux *json.RawMessage + Error *JSONError + ErrorMessage string + From string + ID string + Progress *JSONProgress + ProgressMessage string + Status string + Stream string + Time int64 + TimeNano int64 + type JSONProgress struct + Current int64 + Start int64 + Total int64 + type StatusError struct + Code int + Command []string + Message string + func (e StatusError) Error() string + type StdType byte + const Stderr + const Stdin + const Stdout v0.2.4 Aug 24, 2016 v0.2.3 Aug 17, 2016 v0.2.2 Aug 9, 2016