Documentation
¶
Index ¶
- Constants
- func GetAuth(image string, environment *configuration.Environment) string
- func IsDockerRunning()
- func SolveReadiness(client *client.Http, user *authentication.User, container *Container, ...) error
- func UnpackSecretsEnvs(client *client.Http, user *authentication.User, envs []string) ([]string, error)
- func UnpackSecretsReadiness(client *client.Http, user *authentication.User, body map[string]string) (map[string]string, error)
- func UnpackSecretsResources(client *client.Http, user *authentication.User, resource string) (string, error)
- type ByDepenendecies
- type Container
- func (container *Container) AddNetworkInfoTS(networkId string, ipAddress string, networkName string)
- func (container *Container) CheckIfImagePresent(ctx context.Context, cli *client.Client) bool
- func (container *Container) CopyFromContainer(pathContainer string, pathHost string) error
- func (container *Container) CopyToContainer(reader io.Reader, pathContainer string) error
- func (container *Container) Delete() error
- func (container *Container) Exec(command []string) ExecResult
- func (container *Container) GenerateLabels() map[string]string
- func (container *Container) Get() (*types.Container, error)
- func (container *Container) GetDockerAuth() types.ImagePullOptions
- func (container *Container) GetDomain(networkName string) string
- func (container *Container) GetFromId(runtimeId string) *types.Container
- func (container *Container) GetGroupIdentifier() string
- func (container *Container) GetHeadlessDomain(networkName string) string
- func (container *Container) GetNetwork() *network.NetworkingConfig
- func (container *Container) GetNetworkInfoTS() *internal.Networks
- func (container *Container) HasDependencyOn(kind string, group string, identifier string) bool
- func (container *Container) Prepare(client *client.Http, user *authentication.User) error
- func (container *Container) PrepareConfiguration(client *client.Http, user *authentication.User) error
- func (container *Container) PrepareEnvs()
- func (container *Container) PrepareLabels()
- func (container *Container) PrepareNetwork(client *client.Http, user *authentication.User) error
- func (container *Container) PrepareReadiness()
- func (container *Container) PrepareResources(client *client.Http, user *authentication.User) error
- func (container *Container) PullImage(ctx context.Context, cli *client.Client) error
- func (container *Container) Ready(client *client.Http, user *authentication.User, channel chan *ReadinessState, ...) (bool, error)
- func (container *Container) Rename(newName string) error
- func (container *Container) Restart() bool
- func (container *Container) Run(environment *configuration.Environment, client *client.Http, ...) (*types.Container, error)
- func (container *Container) SetOwner(owner string)
- func (container *Container) SolveAgentNetworking() error
- func (container *Container) Start() bool
- func (container *Container) Stop() bool
- func (container *Container) UpdateDns(dnsCache *dns.Records)
- type Dependency
- type DependencyState
- type ExecResult
- type Exports
- type Network
- type Owner
- type Port
- type Readiness
- type ReadinessResult
- type ReadinessState
- type Resource
- type Result
- type Runtime
- type Static
Constants ¶
View Source
const CHECKING = 0
View Source
const FAILED = 2
View Source
const SUCCESS = 1
Variables ¶
This section is empty.
Functions ¶
func GetAuth ¶
func GetAuth(image string, environment *configuration.Environment) string
func IsDockerRunning ¶ added in v0.0.2
func IsDockerRunning()
func SolveReadiness ¶ added in v0.0.2
func SolveReadiness(client *client.Http, user *authentication.User, container *Container, logger *zap.Logger, readiness *Readiness, channel chan *ReadinessState) error
func UnpackSecretsEnvs ¶ added in v0.0.2
func UnpackSecretsReadiness ¶ added in v0.0.2
func UnpackSecretsResources ¶ added in v0.0.2
Types ¶
type ByDepenendecies ¶
type ByDepenendecies []*Container
func (ByDepenendecies) Len ¶
func (d ByDepenendecies) Len() int
func (ByDepenendecies) Less ¶
func (d ByDepenendecies) Less(i, j int) bool
func (ByDepenendecies) Swap ¶
func (d ByDepenendecies) Swap(i, j int)
type Container ¶
func NewContainerFromDefinition ¶
func NewContainerFromDefinition(config *configuration.Configuration, name string, definition v1.ContainerDefinition) (*Container, error)
func (*Container) AddNetworkInfoTS ¶
func (*Container) CheckIfImagePresent ¶
func (*Container) CopyFromContainer ¶
func (*Container) CopyToContainer ¶
func (*Container) Exec ¶
func (container *Container) Exec(command []string) ExecResult
func (*Container) GenerateLabels ¶
func (*Container) GetDockerAuth ¶
func (container *Container) GetDockerAuth() types.ImagePullOptions
func (*Container) GetGroupIdentifier ¶
func (*Container) GetHeadlessDomain ¶
func (*Container) GetNetwork ¶
func (container *Container) GetNetwork() *network.NetworkingConfig
func (*Container) GetNetworkInfoTS ¶
func (*Container) HasDependencyOn ¶
func (*Container) PrepareConfiguration ¶ added in v0.0.2
func (*Container) PrepareEnvs ¶ added in v0.0.2
func (container *Container) PrepareEnvs()
func (*Container) PrepareLabels ¶ added in v0.0.2
func (container *Container) PrepareLabels()
func (*Container) PrepareNetwork ¶ added in v0.0.2
func (*Container) PrepareReadiness ¶ added in v0.0.2
func (container *Container) PrepareReadiness()
func (*Container) PrepareResources ¶ added in v0.0.2
func (*Container) Ready ¶
func (container *Container) Ready(client *client.Http, user *authentication.User, channel chan *ReadinessState, logger *zap.Logger) (bool, error)
func (*Container) Run ¶
func (container *Container) Run(environment *configuration.Environment, client *client.Http, dnsCache *dns.Records, user *authentication.User) (*types.Container, error)
func (*Container) SolveAgentNetworking ¶ added in v0.0.41
type Dependency ¶ added in v0.0.2
type DependencyState ¶ added in v0.0.2
type DependencyState struct {
State int8
}
type ExecResult ¶
type Readiness ¶
type Readiness struct { Name string Operator string Timeout string Body map[string]string Solved bool BodyUnpack map[string]string `json:"-"` Function func() error `json:"-"` Ctx context.Context `json:"-"` Cancel context.CancelFunc `json:"-"` }
func NewReadinessFromDefinition ¶ added in v0.0.2
func NewReadinessFromDefinition(client *client.Http, user *authentication.User, container *Container, readiness v1.ContainerReadiness) (*Readiness, error)
type ReadinessResult ¶
type ReadinessResult struct {
Data string
}
type ReadinessState ¶
type ReadinessState struct {
State int8
}
type Static ¶
type Static struct { Name string GeneratedName string GeneratedNameNoProject string Labels map[string]string Group string Image string Tag string Replicas int 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 }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.