Documentation ¶
Index ¶
- func DockerGet(containerName string) (types.Container, error)
- func DockerInspect(DockerID string) (types.ContainerJSON, error)
- func Event(event DTEvents.Message) (string, string, bool, string)
- func GetAuth(image string, environment *configuration.Environment) string
- func IsDaemonRunning()
- type Docker
- func (container *Docker) AttachToNetworks() error
- func (container *Docker) BuildNetwork() *network.NetworkingConfig
- func (container *Docker) CheckIfImagePresent(ctx context.Context, cli *client.Client) error
- func (container *Docker) Delete() error
- func (container *Docker) Exec(command []string) types.ExecResult
- func (container *Docker) GenerateLabels() map[string]string
- func (container *Docker) Get() (*TDTypes.Container, error)
- func (container *Docker) GetDefinition() v1.ContainerDefinition
- func (container *Docker) GetDockerAuth() image.PullOptions
- func (container *Docker) GetDomain(network string) string
- func (container *Docker) GetGeneratedName() string
- func (container *Docker) GetGroup() string
- func (container *Docker) GetGroupIdentifier() string
- func (container *Docker) GetHeadlessDomain(network string) string
- func (container *Docker) GetName() string
- func (container *Docker) GetNetworkInfoTS() *internal.Networks
- func (container *Docker) HasDependencyOn(kind string, group string, identifier string, runtime *types.Runtime) bool
- func (container *Docker) Prepare(client *client.Http, user *authentication.User, runtime *types.Runtime) error
- func (container *Docker) PrepareConfiguration(client *client.Http, user *authentication.User, runtime *types.Runtime) error
- func (container *Docker) PrepareEnvs(runtime *types.Runtime)
- func (container *Docker) PrepareLabels(runtime *types.Runtime)
- func (container *Docker) PrepareNetwork(client *client.Http, user *authentication.User, runtime *types.Runtime) error
- func (container *Docker) PrepareReadiness(runtime *types.Runtime)
- func (container *Docker) PrepareResources(client *client.Http, user *authentication.User, runtime *types.Runtime) error
- func (container *Docker) PullImage(ctx context.Context, cli *client.Client) error
- func (container *Docker) RemoveNetworkInfoTS(containerId string, networkId string, ipAddress string, networkName string) error
- func (container *Docker) Rename(newName string) error
- func (container *Docker) Restart() bool
- func (container *Docker) Run(environment *configuration.Environment, client *client.Http, ...) (*TDTypes.Container, error)
- func (container *Docker) RunRaw() (*TDTypes.Container, error)
- func (container *Docker) Start() bool
- func (container *Docker) Stop() bool
- func (container *Docker) SyncNetworkInformation() error
- func (container *Docker) UpdateDns(dnsCache *dns.Records)
- func (container *Docker) UpdateNetworkInfoTS(networkId string, ipAddress string, networkName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DockerInspect ¶
func DockerInspect(DockerID string) (types.ContainerJSON, error)
func GetAuth ¶
func GetAuth(image string, environment *configuration.Environment) string
func IsDaemonRunning ¶ added in v0.0.57
func IsDaemonRunning()
Types ¶
type Docker ¶
type Docker struct { DockerID string DockerState string Name string GeneratedName string Labels map[string]string Group string Image string Tag string Replicas uint64 Configuration map[string]string Env []string Entrypoint []string Args []string Privileged bool NetworkMode string Networks *internal.Networks Ports *internal.Ports Volumes *internal.Volumes Readiness *internal.Readinesses Resources *internal.Resources Capabilities []string Definition v1.ContainerDefinition Auth string }
func New ¶
func New(name string, config *configuration.Configuration, definition *v1.ContainerDefinition) (*Docker, error)
func (*Docker) AttachToNetworks ¶
func (*Docker) BuildNetwork ¶
func (container *Docker) BuildNetwork() *network.NetworkingConfig
func (*Docker) CheckIfImagePresent ¶
func (*Docker) GenerateLabels ¶
func (*Docker) GetDefinition ¶
func (container *Docker) GetDefinition() v1.ContainerDefinition
func (*Docker) GetDockerAuth ¶
func (container *Docker) GetDockerAuth() image.PullOptions
func (*Docker) GetGeneratedName ¶
func (*Docker) GetGroupIdentifier ¶
func (*Docker) GetHeadlessDomain ¶
func (*Docker) GetNetworkInfoTS ¶
func (*Docker) HasDependencyOn ¶
func (*Docker) PrepareConfiguration ¶
func (*Docker) PrepareEnvs ¶
func (*Docker) PrepareLabels ¶
func (*Docker) PrepareNetwork ¶
func (*Docker) PrepareReadiness ¶
func (*Docker) PrepareResources ¶
func (*Docker) RemoveNetworkInfoTS ¶
func (*Docker) Run ¶
func (container *Docker) Run(environment *configuration.Environment, client *client.Http, dnsCache *dns.Records, user *authentication.User) (*TDTypes.Container, error)
func (*Docker) SyncNetworkInformation ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.