deployment

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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
}

func (*Container) Name

func (c *Container) Name() string

func (*Container) Purge

func (c *Container) Purge(ctx context.Context, dc *docker.Client) (bool, error)

func (*Container) Start

func (c *Container) Start(ctx context.Context, dc *docker.Client) (bool, error)

func (*Container) Stop

func (c *Container) Stop(ctx context.Context, dc *docker.Client) (bool, error)

func (*Container) String

func (c *Container) String() string

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 FromConfig(ctx context.Context, conf *config.Homelab) (*Deployment, error)

func FromConfigsPath

func FromConfigsPath(ctx context.Context, configsPath string) (*Deployment, error)

func FromReader

func FromReader(ctx context.Context, reader io.Reader) (*Deployment, error)

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 Network

type Network struct {
	// contains filtered or unexported fields
}

func (*Network) String

func (n *Network) String() string

type NetworkMap

type NetworkMap map[string]*Network

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL