Documentation ¶
Index ¶
- type Container
- func (c *Container) Name() string
- func (c *Container) Purge(ctx context.Context, dc *docker.Client) (bool, error)
- func (c *Container) Start(ctx context.Context, dc *docker.Client) (bool, error)
- func (c *Container) Stop(ctx context.Context, dc *docker.Client) (bool, error)
- func (c *Container) String() string
- type ContainerGroup
- type ContainerGroupMap
- type ContainerList
- type Deployment
- func (d *Deployment) QueryAllContainersInAllGroups(ctx context.Context) (ContainerList, error)
- func (d *Deployment) QueryAllContainersInGroup(ctx context.Context, group string) (ContainerList, error)
- func (d *Deployment) QueryContainer(ctx context.Context, group, container string) (ContainerList, error)
- func (d *Deployment) String() string
- type Network
- type NetworkMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
type ContainerGroup ¶
type ContainerGroup struct {
// contains filtered or unexported fields
}
func NewContainerGroup ¶
func NewContainerGroup(groupConfig *config.ContainerGroup) *ContainerGroup
func (*ContainerGroup) String ¶
func (c *ContainerGroup) String() string
type ContainerGroupMap ¶
type ContainerGroupMap map[string]*ContainerGroup
type ContainerList ¶
type ContainerList []*Container
type Deployment ¶
type Deployment struct { Config *config.Homelab Groups ContainerGroupMap GroupsOrder []string Networks NetworkMap NetworksOrder []string // contains filtered or unexported fields }
func FromConfig ¶
func FromConfigsPath ¶
func FromConfigsPath(ctx context.Context, configsPath string) (*Deployment, error)
func FromReader ¶
func (*Deployment) QueryAllContainersInAllGroups ¶
func (d *Deployment) QueryAllContainersInAllGroups(ctx context.Context) (ContainerList, error)
func (*Deployment) QueryAllContainersInGroup ¶
func (d *Deployment) QueryAllContainersInGroup(ctx context.Context, group string) (ContainerList, error)
func (*Deployment) QueryContainer ¶
func (d *Deployment) QueryContainer(ctx context.Context, group, container string) (ContainerList, error)
func (*Deployment) String ¶
func (d *Deployment) String() string
type NetworkMap ¶
Click to show internal directories.
Click to hide internal directories.