cloudprovider

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0, Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

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

func New

func New(instanceTypeProvider *instancetype.Provider, instanceProvider *instance.Provider, kubeClient client.Client) *CloudProvider

func (*CloudProvider) Create

func (c *CloudProvider) Create(ctx context.Context, machine *v1alpha5.Machine) (*v1alpha5.Machine, error)

Create a node given the constraints.

func (*CloudProvider) Delete

func (c *CloudProvider) Delete(ctx context.Context, machine *v1alpha5.Machine) error

func (*CloudProvider) Get

func (c *CloudProvider) Get(ctx context.Context, providerID string) (*v1alpha5.Machine, error)

func (*CloudProvider) GetInstanceTypes

func (c *CloudProvider) GetInstanceTypes(ctx context.Context, provisioner *v1alpha5.Provisioner) ([]*cloudprovider.InstanceType, error)

func (*CloudProvider) IsMachineDrifted

func (c *CloudProvider) IsMachineDrifted(ctx context.Context, machine *v1alpha5.Machine) (bool, error)

func (*CloudProvider) List

func (c *CloudProvider) List(ctx context.Context) ([]*v1alpha5.Machine, error)

func (*CloudProvider) LivenessProbe

func (c *CloudProvider) LivenessProbe(req *http.Request) error

func (*CloudProvider) Name

func (c *CloudProvider) Name() string

Name returns the CloudProvider implementation name.

Jump to

Keyboard shortcuts

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