vmss

package
v0.0.0-...-d6384ac Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureVMScaleSetClient

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

func NewAzureVMScaleSetClient

func NewAzureVMScaleSetClient(creds config.Credentials, secretclient secrets.SecretClient, scheme *runtime.Scheme) *AzureVMScaleSetClient

func (*AzureVMScaleSetClient) AddVMScaleSetCredsToSecrets

func (p *AzureVMScaleSetClient) AddVMScaleSetCredsToSecrets(ctx context.Context, data map[string][]byte, instance *azurev1alpha1.AzureVMScaleSet) error

func (*AzureVMScaleSetClient) CreateVMScaleSet

func (c *AzureVMScaleSetClient) CreateVMScaleSet(ctx context.Context, location string, resourceGroupName string, resourceName string, vmSize string, capacity int64, osType string, adminUserName string, adminPassword string, sshPublicKeyData string, platformImageURN string, vnetName string, subnetName string, loadBalancerName string, backendAddressPoolName string, inboundNatPoolName string) (future compute.VirtualMachineScaleSetsCreateOrUpdateFuture, err error)

func (*AzureVMScaleSetClient) Delete

func (*AzureVMScaleSetClient) DeleteVMScaleSet

func (c *AzureVMScaleSetClient) DeleteVMScaleSet(ctx context.Context, vmssName string, resourcegroup string) (status string, err error)

func (*AzureVMScaleSetClient) Ensure

func (*AzureVMScaleSetClient) GetOrPrepareSecret

func (p *AzureVMScaleSetClient) GetOrPrepareSecret(ctx context.Context, instance *azurev1alpha1.AzureVMScaleSet) (map[string][]byte, error)

func (*AzureVMScaleSetClient) GetParents

func (*AzureVMScaleSetClient) GetStatus

func (*AzureVMScaleSetClient) GetVMScaleSet

func (c *AzureVMScaleSetClient) GetVMScaleSet(ctx context.Context, resourcegroup string, vmssName string) (vmss compute.VirtualMachineScaleSet, err error)

type VMScaleSetManager

type VMScaleSetManager interface {
	CreateVMScaleSet(ctx context.Context,
		location string,
		resourceGroupName string,
		resourceName string,
		vmSize string,
		osType string,
		adminUserName string,
		adminPassword string,
		sshPublicKeyData string,
		networkInterfaceName string,
		platformImageURN string,
		loadBalancerName string) (compute.VirtualMachineScaleSet, error)

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

	GetVMScaleSet(ctx context.Context,
		resourceGroupName string,
		resourceName string) (compute.VirtualMachineScaleSet, 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