lxd

package
v0.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: AGPL-3.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 Driver

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

func New

func New() (provider Driver, err error)

Establish connection to LXD server.

FIXME: Currently just using the Unix socket because that's the easiest. Will get more advanced later once further requirements and use cases are clear.

func (*Driver) CheckIfInstanceActive

func (p *Driver) CheckIfInstanceActive(id string) (bool, error)

func (*Driver) CheckIfInstanceExists

func (p *Driver) CheckIfInstanceExists(id string) (bool, error)

func (*Driver) CreateInstance

func (p *Driver) CreateInstance(id string, platform string) error

func (*Driver) DestroyInstances

func (p *Driver) DestroyInstances(ids []string) error

func (*Driver) ExecInstance

func (p *Driver) ExecInstance(id string, script string) error

func (*Driver) GetArtifact

func (p *Driver) GetArtifact(id string, artifact storage.Artifact) (out []byte, err error)

Get Artifact from Act instance.

func (*Driver) PutArtifact

func (p *Driver) PutArtifact(id string, artifact storage.Artifact, input []byte) error

Put (upload) Artifact into Act instance.

func (*Driver) StopInstance

func (p *Driver) StopInstance(id string) error

Jump to

Keyboard shortcuts

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