internal

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 License: Apache-2.0, BSD-3-Clause Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginSPIImpl

type PluginSPIImpl struct{}

PluginSPIImpl is the real implementation of PluginSPI interface that makes the calls to the provider SDK

func (*PluginSPIImpl) CreateMachine

func (spi *PluginSPIImpl) CreateMachine(ctx context.Context, machineName string, providerSpec *api.VsphereProviderSpec, secrets *corev1.Secret) (string, error)

CreateMachine creates a VM by cloning from a template

func (*PluginSPIImpl) DeleteMachine

func (spi *PluginSPIImpl) DeleteMachine(ctx context.Context, machineName string, providerID string, providerSpec *api.VsphereProviderSpec, secrets *corev1.Secret) (string, error)

DeleteMachine deletes a VM by name

func (*PluginSPIImpl) GetMachineStatus

func (spi *PluginSPIImpl) GetMachineStatus(ctx context.Context, machineName string, providerID string, providerSpec *api.VsphereProviderSpec, secrets *corev1.Secret) (string, error)

GetMachineStatus checks for existence of VM by name

func (*PluginSPIImpl) ListMachines

func (spi *PluginSPIImpl) ListMachines(ctx context.Context, providerSpec *api.VsphereProviderSpec, secrets *corev1.Secret) (map[string]string, error)

ListMachines lists all VMs in the DC or folder

func (*PluginSPIImpl) ShutDownMachine

func (spi *PluginSPIImpl) ShutDownMachine(ctx context.Context, machineName string, providerID string, providerSpec *api.VsphereProviderSpec, secrets *corev1.Secret) (string, error)

ShutDownMachine shuts down a machine by name

Directories

Path Synopsis
* Copyright 2019 SAP SE or an SAP affiliate company.
* Copyright 2019 SAP SE or an SAP affiliate company.

Jump to

Keyboard shortcuts

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