virtual

package
v0.0.0-...-04e26d2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderAWS string const to identify AWS provider
	ProviderAWS         = "AWS"
	QuotaPrefixFmt      = "QUOTA_%d"
	QuotaMachineTypeFmt = QuotaPrefixFmt + "_MACHINE_TYPE"
	QuotaRegionFmt      = QuotaPrefixFmt + "_REGION"
	QuotaAmountFmt      = QuotaPrefixFmt + "_AMOUNT"
)

Variables

View Source
var SimulationConfigPath = "gen/simulation-config.json"

Functions

func BuildReadyConditions

func BuildReadyConditions() []corev1.NodeCondition

func FileExists

func FileExists(filepath string) bool

func NewDriver

func NewDriver(ctx context.Context, kubeconfig string, shootNamespace string) (driver.Driver, error)

Types

type DriverImpl

type DriverImpl struct {
	// contains filtered or unexported fields
}

DriverImpl is the struct that implements the MCM driver.Driver interface

func (*DriverImpl) CreateMachine

func (d *DriverImpl) CreateMachine(ctx context.Context, req *driver.CreateMachineRequest) (resp *driver.CreateMachineResponse, err error)

func (*DriverImpl) DeleteMachine

func (d *DriverImpl) DeleteMachine(ctx context.Context, request *driver.DeleteMachineRequest) (response *driver.DeleteMachineResponse, err error)

func (*DriverImpl) GetMachineStatus

func (d *DriverImpl) GetMachineStatus(ctx context.Context, request *driver.GetMachineStatusRequest) (response *driver.GetMachineStatusResponse, err error)

func (*DriverImpl) GetVolumeIDs

func (d *DriverImpl) GetVolumeIDs(ctx context.Context, request *driver.GetVolumeIDsRequest) (response *driver.GetVolumeIDsResponse, err error)

func (*DriverImpl) InitializeMachine

func (*DriverImpl) ListMachines

func (d *DriverImpl) ListMachines(ctx context.Context, request *driver.ListMachinesRequest) (response *driver.ListMachinesResponse, err error)

type Quota

type Quota struct {
	MachineType string
	Region      string
	Amount      int
}

func (Quota) String

func (q Quota) String() string

type QuotaLookup

type QuotaLookup struct {
	MachineType string
	RegionName  string
}

type SimulationConfig

type SimulationConfig struct {
	Quotas              []Quota
	InstanceCreateDelay string
	InstanceDeleteDelay string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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