aws

package
v0.20.1 Latest Latest
Warning

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

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

Documentation

Overview

Package aws contains the cloud provider specific implementations to manage machines

Index

Constants

View Source
const (
	// AWSMachineClassKind for AWSMachineClass
	AWSMachineClassKind = "AWSMachineClass"

	// MachineClassKind for MachineClass
	MachineClassKind = "MachineClass"
)
View Source
const (
	// ProviderAWS string const to identify AWS provider
	ProviderAWS = "AWS"
)

Variables

This section is empty.

Functions

func NewAWSDriver

func NewAWSDriver(spi spi.SessionProviderInterface) driver.Driver

NewAWSDriver returns an empty AWSDriver object

Types

type Driver

type Driver struct {
	SPI spi.SessionProviderInterface
}

Driver is the driver struct for holding AWS machine information

func (*Driver) CreateMachine

func (d *Driver) CreateMachine(ctx context.Context, req *driver.CreateMachineRequest) (resp *driver.CreateMachineResponse, err error)

CreateMachine handles a machine creation request

func (*Driver) DeleteMachine

func (d *Driver) DeleteMachine(ctx context.Context, req *driver.DeleteMachineRequest) (resp *driver.DeleteMachineResponse, err error)

DeleteMachine handles a machine deletion request

func (*Driver) GetMachineStatus

func (d *Driver) GetMachineStatus(ctx context.Context, req *driver.GetMachineStatusRequest) (resp *driver.GetMachineStatusResponse, err error)

GetMachineStatus handles a machine get status request

func (*Driver) GetVolumeIDs

func (d *Driver) GetVolumeIDs(ctx context.Context, req *driver.GetVolumeIDsRequest) (resp *driver.GetVolumeIDsResponse, err error)

GetVolumeIDs returns a list of Volume IDs for all PV Specs for whom a provider volume was found

func (*Driver) InitializeMachine added in v0.20.0

InitializeMachine should handle post-creation, one-time VM instance initialization operations. (Ex: Like setting up special network config, etc) The AWS Provider leverages this method to perform disabling of source destination checks for NAT instances. See driver.Driver.InitializeMachine for further information

func (*Driver) ListMachines

func (d *Driver) ListMachines(ctx context.Context, req *driver.ListMachinesRequest) (resp *driver.ListMachinesResponse, err error)

ListMachines lists all the machines possibly created by a machineClass

Directories

Path Synopsis
validation
Package validation - validation is used to validate cloud specific ProviderSpec for AWS
Package validation - validation is used to validate cloud specific ProviderSpec for AWS

Jump to

Keyboard shortcuts

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