daemon

package
v0.0.0-...-f0506c8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerDaemon

type ContainerDaemon interface {
	ListContainers() (*pfmodel.ContainerList, error)
	CreateContainer(container pfmodel.Container) (bool, string, error)
	DeleteContainer(hostname string) (bool, error)
	CreateContainerBootstrapScript(container pfmodel.Container) (bool, error)
	ValidateAndBootstrapContainer(container pfmodel.Container) (bool, error)
	MigrateContainer(container pfmodel.Container) (success bool, ipaddress string, err error)
}

type LXD

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

func NewLXD

func NewLXD(hostname string, socketPath string) (*LXD, error)

func (*LXD) CreateContainer

func (l *LXD) CreateContainer(container pfmodel.Container) (bool, string, error)

func (*LXD) CreateContainerBootstrapScript

func (l *LXD) CreateContainerBootstrapScript(container pfmodel.Container) (bool, error)

func (*LXD) DeleteContainer

func (l *LXD) DeleteContainer(hostname string) (bool, error)

func (*LXD) ListContainers

func (l *LXD) ListContainers() (*pfmodel.ContainerList, error)

func (*LXD) MigrateContainer

func (l *LXD) MigrateContainer(container pfmodel.Container) (success bool, ipaddress string, err error)

func (*LXD) ValidateAndBootstrapContainer

func (l *LXD) ValidateAndBootstrapContainer(container pfmodel.Container) (bool, error)

Jump to

Keyboard shortcuts

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