Documentation ¶
Index ¶
- Constants
- func GetAuth(image string, runtime *runtime.Runtime) string
- func GetContainers() []types.Container
- func GetContainersAllStates() []types.Container
- type ByDepenendecies
- type Container
- func (container *Container) CheckIfImagePresent(ctx context.Context, cli *client.Client) bool
- func (container *Container) ConnectToTheSameNetwork(containerId string, networkId string) error
- func (container *Container) CopyFromContainer(pathContainer string, pathHost string) error
- func (container *Container) CopyToContainer(reader io.Reader, pathContainer string) error
- func (container *Container) CreateNetwork() error
- func (container *Container) Delete() error
- func (container *Container) Exec(command []string) ExecResult
- func (container *Container) FindNetwork() bool
- func (container *Container) FindNetworkAlias(endpointName string, networkId string) bool
- func (container *Container) GenerateLabels() map[string]string
- func (container *Container) GenerateNetworkSubnet() (string, error)
- func (container *Container) Get() *types.Container
- func (container *Container) GetDockerAuth() types.ImagePullOptions
- func (container *Container) GetDomain() string
- func (container *Container) GetFromId(runtimeId string) *types.Container
- func (container *Container) GetHeadlessDomain() string
- func (container *Container) GetNetwork() *network.NetworkingConfig
- func (container *Container) HasDependencyOn(kind string, group string, identifier string) bool
- func (container *Container) Prepare(db *badger.DB) bool
- func (container *Container) PullImage(ctx context.Context, cli *client.Client) error
- func (container *Container) Rename(newName string) error
- func (container *Container) Restart() bool
- func (container *Container) Run(runtime *runtime.Runtime, Badger *badger.DB, dnsCache *dns.Records) (*types.Container, error)
- func (container *Container) Start() bool
- func (container *Container) Stop() bool
- type ExecResult
- type Exports
- type Network
- type Resource
- type Runtime
- type Static
- type Status
Constants ¶
View Source
const STARTING_SUBNET string = "10.10.0.0/16"
Variables ¶
This section is empty.
Functions ¶
func GetContainers ¶
func GetContainersAllStates ¶
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 NewContainer ¶
func NewContainer() *Container
func (*Container) CheckIfImagePresent ¶
func (*Container) ConnectToTheSameNetwork ¶
func (*Container) CopyFromContainer ¶
func (*Container) CopyToContainer ¶
func (*Container) CreateNetwork ¶
func (*Container) Exec ¶
func (container *Container) Exec(command []string) ExecResult
func (*Container) FindNetwork ¶
func (*Container) FindNetworkAlias ¶
func (*Container) GenerateLabels ¶
func (*Container) GenerateNetworkSubnet ¶
func (*Container) GetDockerAuth ¶
func (container *Container) GetDockerAuth() types.ImagePullOptions
func (*Container) GetHeadlessDomain ¶
func (*Container) GetNetwork ¶
func (container *Container) GetNetwork() *network.NetworkingConfig
func (*Container) HasDependencyOn ¶
type ExecResult ¶
type Static ¶
type Static struct { Name string GeneratedName string GeneratedNameNoProject string Labels map[string]string Group string Image string Tag string Replicas int Networks []string Env []string Entrypoint []string Command []string MappingFiles []map[string]string MappingPorts []network.PortMappings ExposedPorts []string MountFiles []string Capabilities []string NetworkMode string Privileged bool Definition v1.Container }
Click to show internal directories.
Click to hide internal directories.