Documentation ¶
Overview ¶
Package ionos contains the IONOS provider specific implementations to manage machines
Package ionos contains the IONOS provider specific implementations to manage machines
Index ¶
- func NewIonosProvider(spi spi.SessionProviderInterface) driver.Driver
- type MachineProvider
- func (p *MachineProvider) CreateMachine(ctx context.Context, req *driver.CreateMachineRequest) (*driver.CreateMachineResponse, error)
- func (p *MachineProvider) DeleteMachine(ctx context.Context, req *driver.DeleteMachineRequest) (*driver.DeleteMachineResponse, error)
- func (p *MachineProvider) GenerateMachineClassForMigration(ctx context.Context, req *driver.GenerateMachineClassForMigrationRequest) (*driver.GenerateMachineClassForMigrationResponse, error)
- func (p *MachineProvider) GetMachineStatus(ctx context.Context, req *driver.GetMachineStatusRequest) (*driver.GetMachineStatusResponse, error)
- func (p *MachineProvider) GetVolumeIDs(ctx context.Context, req *driver.GetVolumeIDsRequest) (*driver.GetVolumeIDsResponse, error)
- func (p *MachineProvider) ListMachines(ctx context.Context, req *driver.ListMachinesRequest) (*driver.ListMachinesResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIonosProvider ¶
func NewIonosProvider(spi spi.SessionProviderInterface) driver.Driver
NewIonosProvider returns a provider object.
PARAMETERS spi spi.SessionProviderInterface Session provider interface to attach
Types ¶
type MachineProvider ¶
type MachineProvider struct {
SPI spi.SessionProviderInterface
}
MachineProvider is the struct that implements the driver interface
func (*MachineProvider) CreateMachine ¶
func (p *MachineProvider) CreateMachine(ctx context.Context, req *driver.CreateMachineRequest) (*driver.CreateMachineResponse, error)
CreateMachine handles a machine creation request
PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The create request for VM creation
func (*MachineProvider) DeleteMachine ¶
func (p *MachineProvider) DeleteMachine(ctx context.Context, req *driver.DeleteMachineRequest) (*driver.DeleteMachineResponse, error)
DeleteMachine handles a machine deletion request
PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The delete request for VM deletion
func (*MachineProvider) GenerateMachineClassForMigration ¶
func (p *MachineProvider) GenerateMachineClassForMigration(ctx context.Context, req *driver.GenerateMachineClassForMigrationRequest) (*driver.GenerateMachineClassForMigrationResponse, error)
GenerateMachineClassForMigration helps in migration of one kind of machineClass CR to another kind.
PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The request for generating the generic machineClass
func (*MachineProvider) GetMachineStatus ¶
func (p *MachineProvider) GetMachineStatus(ctx context.Context, req *driver.GetMachineStatusRequest) (*driver.GetMachineStatusResponse, error)
GetMachineStatus handles a machine get status request
PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The get request for VM info
func (*MachineProvider) GetVolumeIDs ¶
func (p *MachineProvider) 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
PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The request object to get a list of VolumeIDs for a PVSpec
func (*MachineProvider) ListMachines ¶
func (p *MachineProvider) ListMachines(ctx context.Context, req *driver.ListMachinesRequest) (*driver.ListMachinesResponse, error)
ListMachines lists all the machines possibilly created by a providerSpec
PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The request object to get a list of VMs belonging to a machineClass
Directories ¶
Path | Synopsis |
---|---|
Package apis is the main package for provider specific APIs
|
Package apis is the main package for provider specific APIs |
mock
Package mock provides all methods required to simulate a driver
|
Package mock provides all methods required to simulate a driver |
transcoder
Package transcoder is used for API related object transformations
|
Package transcoder is used for API related object transformations |
validation
Package validation - validation is used to validate cloud specific ProviderSpec
|
Package validation - validation is used to validate cloud specific ProviderSpec |