Documentation ¶
Index ¶
- Constants
- type Container
- func (c Container) AttachToNetworks() error
- func (c Container) Delete() error
- func (c Container) Exec(command []string) types.ExecResult
- func (c Container) Get() (*TDTypes.Container, error)
- func (c Container) GetAgent() string
- func (c Container) GetDefinition() v1.ContainerDefinition
- func (c Container) GetDomain(network string) string
- func (c Container) GetGeneratedName() string
- func (c Container) GetGroup() string
- func (c Container) GetGroupIdentifier() string
- func (c Container) GetHeadlessDomain(network string) string
- func (c Container) GetLabels() map[string]string
- func (c Container) GetName() string
- func (c Container) GetRuntime() *types.Runtime
- func (c Container) GetStatus() *status.Status
- func (c Container) IsGhost() bool
- func (c Container) Prepare(client *client.Http, user *authentication.User) error
- func (c Container) Rename(newName string) error
- func (c Container) Restart() bool
- func (c Container) Run(environment *configuration.Environment, http *client.Http, ...) (*TDTypes.Container, error)
- func (c Container) SetGhost(ghost bool)
- func (c Container) Start() bool
- func (c Container) Stop() bool
- func (c Container) UpdateDns(cache *dns.Records)
- type General
- type IContainer
- type IPlatform
Constants ¶
View Source
const SPREAD_SPECIFIC string = "specific"
View Source
const SPREAD_UNIFORM string = "uniform"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct { Platform IPlatform General *General Type string // contains filtered or unexported fields }
func (Container) AttachToNetworks ¶
func (Container) GetDefinition ¶
func (c Container) GetDefinition() v1.ContainerDefinition
func (Container) GetGeneratedName ¶
func (Container) GetGroupIdentifier ¶
func (Container) GetHeadlessDomain ¶
func (Container) GetRuntime ¶
func (Container) Run ¶
func (c Container) Run(environment *configuration.Environment, http *client.Http, records *dns.Records, user *authentication.User) (*TDTypes.Container, error)
type IContainer ¶
type IContainer interface { Start() bool Stop() bool Restart() bool Delete() error Rename(newName string) error Exec(command []string) types.ExecResult Get() (*TDTypes.Container, error) Run(*configuration.Environment, *client.Http, *dns.Records, *authentication.User) (*TDTypes.Container, error) Prepare(client *client.Http, user *authentication.User) error AttachToNetworks() error UpdateDns(dnsCache *dns.Records) GetRuntime() *types.Runtime GetStatus() *status.Status GetAgent() string GetDefinition() v1.ContainerDefinition GetLabels() map[string]string GetGeneratedName() string GetName() string GetGroup() string GetGroupIdentifier() string GetDomain(network string) string GetHeadlessDomain(network string) string IsGhost() bool SetGhost(bool) }
func New ¶
func New(platform string, name string, config *configuration.Configuration, ChangeC chan distributed.Container, definition *v1.ContainerDefinition) (IContainer, error)
func NewGhost ¶ added in v0.0.69
func NewGhost(state map[string]interface{}) (IContainer, error)
type IPlatform ¶
type IPlatform interface { Start() bool Stop() bool Restart() bool Delete() error Rename(newName string) error Exec(command []string) types.ExecResult Get() (*TDTypes.Container, error) Run(*configuration.Environment, *client.Http, *dns.Records, *authentication.User) (*TDTypes.Container, error) Prepare(client *client.Http, user *authentication.User, runtime *types.Runtime) error AttachToNetworks() error UpdateDns(dnsCache *dns.Records) GenerateLabels() map[string]string GetDefinition() v1.ContainerDefinition GetGeneratedName() string GetName() string GetGroup() string GetGroupIdentifier() string GetDomain(networkName string) string GetHeadlessDomain(networkName string) string }
Click to show internal directories.
Click to hide internal directories.