mgmt

package
v0.0.0-...-6bb720d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: MIT Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageFactory

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

func NewStorageFactory

func NewStorageFactory(subscriptionID string) *StorageFactory

NewStorageFactory instantiates an Azure Storage factory for building an Azure Storage playground

func (*StorageFactory) CreateStorageStack

func (sf *StorageFactory) CreateStorageStack(ctx context.Context, location string) *StorageStack

func (*StorageFactory) DestroyStorageStack

func (sf *StorageFactory) DestroyStorageStack(ctx context.Context, stack *StorageStack)

type StorageStack

type StorageStack struct {
	Location string

	Cred          azcore.TokenCredential
	ResourceGroup armresources.ResourceGroup
	Account       armstorage.Account
	AccountKey    *armstorage.AccountKey
	// contains filtered or unexported fields
}

func (*StorageStack) ServiceClient

func (ss *StorageStack) ServiceClient() *azblob.Client

type VirtualMachineFactory

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

func NewVirtualMachineFactory

func NewVirtualMachineFactory(subscriptionID, sshPubKeyPath string) *VirtualMachineFactory

NewVirtualMachineFactory instantiates an Azure VirtualMachine factory

func (*VirtualMachineFactory) CreateVirtualMachineStack

func (vmf *VirtualMachineFactory) CreateVirtualMachineStack(ctx context.Context, location string) *VirtualMachineStack

CreateVirtualMachineStack creates a virtual machine and networking within a resource group

func (*VirtualMachineFactory) DestroyVirtualMachineStack

func (vmf *VirtualMachineFactory) DestroyVirtualMachineStack(ctx context.Context, vmStack *VirtualMachineStack)

DestroyVirtualMachineStack deletes a virtual machine and networking within a resource group. This function does not wait for completion. Once the delete operation is accepted, the function returns.

type VirtualMachineStack

type VirtualMachineStack struct {
	Location string

	ResourceGroup    armresources.ResourceGroup
	VirtualNetwork   armnetwork.VirtualNetwork
	SecurityGroup    armnetwork.SecurityGroup
	VirtualMachine   armcompute.VirtualMachine
	NetworkInterface armnetwork.Interface
	PublicIP         armnetwork.PublicIPAddress
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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