vm

package
v0.0.0-...-08b58c2 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureVirtualMachineClient

type AzureVirtualMachineClient struct {
	Creds        config.Credentials
	SecretClient secrets.SecretClient
	Scheme       *runtime.Scheme
}

func NewAzureVirtualMachineClient

func NewAzureVirtualMachineClient(creds config.Credentials, secretclient secrets.SecretClient, scheme *runtime.Scheme) *AzureVirtualMachineClient

func (*AzureVirtualMachineClient) AddVirtualMachineCredsToSecrets

func (c *AzureVirtualMachineClient) AddVirtualMachineCredsToSecrets(ctx context.Context, data map[string][]byte, instance *azurev1alpha1.AzureVirtualMachine) error

func (*AzureVirtualMachineClient) CreateVirtualMachine

func (c *AzureVirtualMachineClient) CreateVirtualMachine(ctx context.Context, location string, resourceGroupName string, resourceName string, vmSize string, osType string, adminUserName string, adminPassword string, sshPublicKeyData string, networkInterfaceName string, platformImageURN string) (future compute.VirtualMachinesCreateOrUpdateFuture, err error)

func (*AzureVirtualMachineClient) Delete

func (*AzureVirtualMachineClient) DeleteVirtualMachine

func (c *AzureVirtualMachineClient) DeleteVirtualMachine(ctx context.Context, vmName string, resourcegroup string) (status string, err error)

func (*AzureVirtualMachineClient) Ensure

func (*AzureVirtualMachineClient) GetOrPrepareSecret

func (c *AzureVirtualMachineClient) GetOrPrepareSecret(ctx context.Context, instance *azurev1alpha1.AzureVirtualMachine) (map[string][]byte, error)

func (*AzureVirtualMachineClient) GetParents

func (*AzureVirtualMachineClient) GetStatus

func (*AzureVirtualMachineClient) GetVirtualMachine

func (c *AzureVirtualMachineClient) GetVirtualMachine(ctx context.Context, resourcegroup string, vmName string) (vm compute.VirtualMachine, err error)

type VirtualMachineManager

type VirtualMachineManager interface {
	CreateVirtualMachine(ctx context.Context,
		location string,
		resourceGroupName string,
		resourceName string,
		vmSize string,
		osType string,
		adminUserName string,
		adminPassword string,
		sshPublicKeyData string,
		networkInterfaceName string,
		platformImageURN string) (compute.VirtualMachine, error)

	DeleteVirtualMachine(ctx context.Context,
		resourceName string,
		resourceGroupName string) (string, error)

	GetVirtualMachine(ctx context.Context,
		resourceGroupName string,
		resourceName string) (compute.VirtualMachine, error)

	// also embed async client methods
	resourcemanager.ARMClient
}

Jump to

Keyboard shortcuts

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