Documentation ¶
Index ¶
- Constants
- type Container
- func (c *Container) AttachToNetworks(agentContainerName string) 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) Kill(signal string) error
- func (c *Container) Prepare(client *client.Http, user *authentication.User) error
- func (c *Container) Rename(newName string) error
- func (c *Container) Restart() error
- func (c *Container) Run(config *configuration.Configuration, http *client.Http, records *dns.Records, ...) (*TDTypes.Container, error)
- func (c *Container) SetGhost(ghost bool)
- func (c *Container) Start() error
- func (c *Container) Stop(signal string) error
- func (c *Container) ToJson() ([]byte, error)
- 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 Lock sync.RWMutex // 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(config *configuration.Configuration, http *client.Http, records *dns.Records, user *authentication.User) (*TDTypes.Container, error)
type IContainer ¶
type IContainer interface { Start() error Stop(signal string) error Kill(signal string) error Restart() error Delete() error Rename(newName string) error Exec(command []string) types.ExecResult Get() (*TDTypes.Container, error) Run(*configuration.Configuration, *client.Http, *dns.Records, *authentication.User) (*TDTypes.Container, error) Prepare(client *client.Http, user *authentication.User) error AttachToNetworks(string) 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) ToJson() ([]byte, error) }
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() error Stop(signal string) error Kill(signal string) error Restart() error Delete() error Rename(newName string) error Exec(command []string) types.ExecResult Get() (*TDTypes.Container, error) Run(*configuration.Configuration, *client.Http, *dns.Records, *authentication.User) (*TDTypes.Container, error) Prepare(client *client.Http, user *authentication.User, runtime *types.Runtime) error AttachToNetworks(string) 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 ToJson() ([]byte, error) }
Click to show internal directories.
Click to hide internal directories.