instance

package
v0.0.0-...-5affba4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MaxInstanceTypes defines the number of instance type options to pass to CreateFleet
	MaxInstanceTypes = 60
)

Functions

func GetCapacityType

func GetCapacityType(instance *ec2.Instance) string

Types

type Provider

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

func NewProvider

func NewProvider(ctx context.Context, region string, ec2api ec2iface.EC2API, unavailableOfferings *cache.UnavailableOfferings,
	instanceTypeProvider *instancetype.Provider, subnetProvider *subnet.Provider, launchTemplateProvider *launchtemplate.Provider) *Provider

func (*Provider) Create

func (p *Provider) Create(ctx context.Context, nodeTemplate *v1alpha1.AWSNodeTemplate, machine *v1alpha5.Machine, instanceTypes []*cloudprovider.InstanceType) (*ec2.Instance, error)

func (*Provider) Delete

func (p *Provider) Delete(ctx context.Context, id string) error

func (*Provider) Get

func (p *Provider) Get(ctx context.Context, id string) (*ec2.Instance, error)
func (p *Provider) Link(ctx context.Context, id string) error

func (*Provider) List

func (p *Provider) List(ctx context.Context) ([]*ec2.Instance, error)

func (*Provider) Update

func (p *Provider) Update(ctx context.Context, machine *v1alpha5.Machine) (*ec2.Instance, error)

Update receives a machine and updates the EC2 instance with tags linking it to the machine Deprecated: This function can be removed when v1alpha6/v1beta1 migration has completed.

Jump to

Keyboard shortcuts

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