Documentation ¶
Index ¶
- Constants
- func NewLXDProvider(configFile, controllerID string) (execution.ExternalProvider, error)
- type LXD
- func (l *LXD) CreateInstance(ctx context.Context, bootstrapParams commonParams.BootstrapInstance) (commonParams.ProviderInstance, error)
- func (l *LXD) DeleteInstance(ctx context.Context, instance string) error
- func (l *LXD) GetInstance(ctx context.Context, instanceName string) (commonParams.ProviderInstance, error)
- func (l *LXD) ListInstances(ctx context.Context, poolID string) ([]commonParams.ProviderInstance, error)
- func (l *LXD) RemoveAllInstances(ctx context.Context) error
- func (l *LXD) Start(ctx context.Context, instance string) error
- func (l *LXD) Stop(ctx context.Context, instance string, force bool) error
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 ¶
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 ¶
RemoveAllInstances will remove all instances created by this provider.
Click to show internal directories.
Click to hide internal directories.