Documentation ¶
Index ¶
- type PluginSPIImpl
- func (spi *PluginSPIImpl) CreateMachine(ctx context.Context, machineName string, providerSpec *api.VsphereProviderSpec, ...) (string, error)
- func (spi *PluginSPIImpl) DeleteMachine(ctx context.Context, machineName string, providerID string, ...) (string, error)
- func (spi *PluginSPIImpl) GetMachineStatus(ctx context.Context, machineName string, providerID string, ...) (string, error)
- func (spi *PluginSPIImpl) ListMachines(ctx context.Context, providerSpec *api.VsphereProviderSpec, ...) (map[string]string, error)
- func (spi *PluginSPIImpl) ShutDownMachine(ctx context.Context, machineName string, providerID string, ...) (string, error)
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
Click to show internal directories.
Click to hide internal directories.