provider

package
v0.0.0-...-ceda41a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultProjectDescription = "This project was created automatically by garm to be used for github ephemeral action runners."
	DefaultProjectName        = "garm-project"
)

Variables

This section is empty.

Functions

func NewLXDProvider

func NewLXDProvider(configFile, controllerID string) (execution.ExternalProvider, error)

Types

type LXD

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

func (*LXD) CreateInstance

func (l *LXD) CreateInstance(ctx context.Context, bootstrapParams commonParams.BootstrapInstance) (commonParams.ProviderInstance, error)

CreateInstance creates a new compute instance in the provider.

func (*LXD) DeleteInstance

func (l *LXD) DeleteInstance(ctx context.Context, instance string) error

Delete instance will delete the instance in a provider.

func (*LXD) GetInstance

func (l *LXD) GetInstance(ctx context.Context, instanceName string) (commonParams.ProviderInstance, error)

GetInstance will return details about one instance.

func (*LXD) ListInstances

func (l *LXD) ListInstances(ctx context.Context, poolID string) ([]commonParams.ProviderInstance, error)

ListInstances will list all instances for a provider.

func (*LXD) RemoveAllInstances

func (l *LXD) RemoveAllInstances(ctx context.Context) error

RemoveAllInstances will remove all instances created by this provider.

func (*LXD) Start

func (l *LXD) Start(ctx context.Context, instance string) error

Start boots up an instance.

func (*LXD) Stop

func (l *LXD) Stop(ctx context.Context, instance string, force bool) error

Stop shuts down the instance.

Jump to

Keyboard shortcuts

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