Documentation
¶
Overview ¶
Package aws contains the cloud provider specific implementations to manage machines
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(ctx context.Context, req *driver.CreateMachineRequest) (*driver.CreateMachineResponse, error)
- func (d *Driver) DeleteMachine(ctx context.Context, req *driver.DeleteMachineRequest) (*driver.DeleteMachineResponse, error)
- func (d *Driver) GenerateMachineClassForMigration(ctx context.Context, req *driver.GenerateMachineClassForMigrationRequest) (*driver.GenerateMachineClassForMigrationResponse, error)
- func (d *Driver) GetMachineStatus(ctx context.Context, req *driver.GetMachineStatusRequest) (*driver.GetMachineStatusResponse, error)
- func (d *Driver) GetVolumeIDs(ctx context.Context, req *driver.GetVolumeIDsRequest) (*driver.GetVolumeIDsResponse, error)
- func (d *Driver) ListMachines(ctx context.Context, req *driver.ListMachinesRequest) (*driver.ListMachinesResponse, 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(ctx context.Context, req *driver.CreateMachineRequest) (*driver.CreateMachineResponse, error)
CreateMachine handles a machine creation request
func (*Driver) DeleteMachine ¶
func (d *Driver) DeleteMachine(ctx context.Context, req *driver.DeleteMachineRequest) (*driver.DeleteMachineResponse, error)
DeleteMachine handles a machine deletion request
func (*Driver) GenerateMachineClassForMigration ¶
func (d *Driver) GenerateMachineClassForMigration(ctx context.Context, req *driver.GenerateMachineClassForMigrationRequest) (*driver.GenerateMachineClassForMigrationResponse, error)
GenerateMachineClassForMigration converts providerSpecificMachineClass to (generic) MachineClass
func (*Driver) GetMachineStatus ¶
func (d *Driver) GetMachineStatus(ctx context.Context, req *driver.GetMachineStatusRequest) (*driver.GetMachineStatusResponse, error)
GetMachineStatus handles a machine get status request
func (*Driver) GetVolumeIDs ¶
func (d *Driver) GetVolumeIDs(ctx context.Context, req *driver.GetVolumeIDsRequest) (*driver.GetVolumeIDsResponse, error)
GetVolumeIDs returns a list of Volume IDs for all PV Specs for whom an provider volume was found
func (*Driver) ListMachines ¶
func (d *Driver) ListMachines(ctx context.Context, req *driver.ListMachinesRequest) (*driver.ListMachinesResponse, error)
ListMachines lists all the machines possibilly 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 |