hcloud

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: Apache-2.0, BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package hcloud contains the HCloud provider specific implementations to manage machines

Package hcloud contains the HCloud provider specific implementations to manage machines

Package hcloud contains the HCloud provider specific implementations to manage machines

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHCloudProvider

func NewHCloudProvider(spi spi.SessionProviderInterface) driver.Driver

NewHCloudProvider returns a provider object.

PARAMETERS spi spi.SessionProviderInterface Session provider interface to attach

Types

type CreateMachineMethodData added in v0.2.10

type CreateMachineMethodData struct {
	ServerID     int
	FloatingIPID int
}

type CtxWrapDataKey added in v0.2.10

type CtxWrapDataKey string

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