Documentation
¶
Overview ¶
Package aws contains the cloud provider specific implementations to manage machines
Index ¶
- Constants
- func NewAWSDriver(spi spi.SessionProviderInterface) driver.Driver
- type Driver
- func (d *Driver) CreateMachine(_ context.Context, req *driver.CreateMachineRequest) (resp *driver.CreateMachineResponse, err error)
- func (d *Driver) DeleteMachine(_ context.Context, req *driver.DeleteMachineRequest) (resp *driver.DeleteMachineResponse, err error)
- func (d *Driver) GetMachineStatus(_ context.Context, req *driver.GetMachineStatusRequest) (resp *driver.GetMachineStatusResponse, err error)
- func (d *Driver) GetVolumeIDs(_ context.Context, req *driver.GetVolumeIDsRequest) (resp *driver.GetVolumeIDsResponse, err error)
- func (d *Driver) InitializeMachine(_ context.Context, request *driver.InitializeMachineRequest) (*driver.InitializeMachineResponse, error)
- func (d *Driver) ListMachines(_ context.Context, req *driver.ListMachinesRequest) (resp *driver.ListMachinesResponse, err error)
Constants ¶
const ( // AWSMachineClassKind for AWSMachineClass AWSMachineClassKind = "AWSMachineClass" // MachineClassKind for MachineClass MachineClassKind = "MachineClass" )
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(_ context.Context, req *driver.CreateMachineRequest) (resp *driver.CreateMachineResponse, err error)
CreateMachine handles a machine creation request
func (*Driver) DeleteMachine ¶
func (d *Driver) DeleteMachine(_ context.Context, req *driver.DeleteMachineRequest) (resp *driver.DeleteMachineResponse, err error)
DeleteMachine handles a machine deletion request
func (*Driver) GetMachineStatus ¶
func (d *Driver) GetMachineStatus(_ context.Context, req *driver.GetMachineStatusRequest) (resp *driver.GetMachineStatusResponse, err error)
GetMachineStatus handles a machine get status request
func (*Driver) GetVolumeIDs ¶
func (d *Driver) GetVolumeIDs(_ 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
func (d *Driver) InitializeMachine(_ context.Context, request *driver.InitializeMachineRequest) (*driver.InitializeMachineResponse, error)
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(_ 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 |