ionos

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0, BSD-3-Clause Imports: 13 Imported by: 0

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

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

CreateMachine handles a machine creation request

PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The create request for VM creation

func (*MachineProvider) DeleteMachine

DeleteMachine handles a machine deletion request

PARAMETERS ctx context.Context Execution context req *driver.CreateMachineRequest The delete request for VM deletion

func (*MachineProvider) GenerateMachineClassForMigration

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

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

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

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

Jump to

Keyboard shortcuts

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