provider

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	ControllerID  string
	ClientSet     kubernetes.Interface
	LabelSelector labels.Selector
}

func NewKubernetesProvider

func NewKubernetesProvider(clientSet kubernetes.Interface, controllerID, poolID string) (*Provider, error)

func (Provider) CreateInstance

func (p Provider) CreateInstance(_ context.Context, bootstrapParams params.BootstrapInstance) (params.ProviderInstance, error)

func (Provider) DeleteInstance

func (p Provider) DeleteInstance(_ context.Context, instance string) error

func (Provider) GetInstance

func (p Provider) GetInstance(_ context.Context, instance string) (params.ProviderInstance, error)

func (Provider) ListInstances

func (p Provider) ListInstances(_ context.Context, _ string) ([]params.ProviderInstance, error)

func (Provider) RemoveAllInstances

func (p Provider) RemoveAllInstances(ctx context.Context) error

func (Provider) Start

func (p Provider) Start(_ context.Context, instance string) error

func (Provider) Stop

func (p Provider) Stop(_ context.Context, instance string, force bool) error

Jump to

Keyboard shortcuts

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