client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureCli

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

func NewAzCLI

func NewAzCLI(cfg *config.Config) (*AzureCli, error)

func (*AzureCli) Clients

func (a *AzureCli) Clients() (rgCli *armresources.ResourceGroupsClient, netCli *armnetwork.VirtualNetworksClient, subnetCli *armnetwork.SubnetsClient, nsgCli *armnetwork.SecurityGroupsClient, nicCli *armnetwork.InterfacesClient, vmCli *armcompute.VirtualMachinesClient, pubIPCli *armnetwork.PublicIPAddressesClient, extCli *armcompute.VirtualMachineExtensionsClient, skuCli *armcompute.ResourceSKUsClient)

func (*AzureCli) Config

func (a *AzureCli) Config() *config.Config

func (*AzureCli) CreateNetWorkInterface

func (a *AzureCli) CreateNetWorkInterface(ctx context.Context, baseName, subnetID, networkSecurityGroupID, publicIPID string, acceletatedNetworking bool) (*armnetwork.Interface, error)

func (*AzureCli) CreateNetworkSecurityGroup

func (a *AzureCli) CreateNetworkSecurityGroup(ctx context.Context, baseName string, spec *spec.RunnerSpec) (*armnetwork.SecurityGroup, error)

func (*AzureCli) CreatePublicIP

func (a *AzureCli) CreatePublicIP(ctx context.Context, baseName string) (*armnetwork.PublicIPAddress, error)

func (*AzureCli) CreateResourceGroup

func (a *AzureCli) CreateResourceGroup(ctx context.Context, name string, tags map[string]*string) (*armresources.ResourceGroup, error)

func (*AzureCli) CreateSubnet

func (a *AzureCli) CreateSubnet(ctx context.Context, baseName, subnetCIDR string) (*armnetwork.Subnet, error)

func (*AzureCli) CreateVirtualMachine

func (a *AzureCli) CreateVirtualMachine(ctx context.Context, spec *spec.RunnerSpec, networkInterfaceID string, sizeSpec spec.VMSizeEphemeralDiskSizeLimits) error

func (*AzureCli) CreateVirtualNetwork

func (a *AzureCli) CreateVirtualNetwork(ctx context.Context, baseName, spaceCIDR string) (*armnetwork.VirtualNetwork, error)

func (*AzureCli) DealocateVM

func (a *AzureCli) DealocateVM(ctx context.Context, vmName string) error

func (*AzureCli) DeleteResourceGroup

func (a *AzureCli) DeleteResourceGroup(ctx context.Context, resourceGroup string, forceDelete bool) error

func (*AzureCli) GetInstance

func (a *AzureCli) GetInstance(ctx context.Context, vmName string) (armcompute.VirtualMachine, error)

func (*AzureCli) GetMaxEphemeralDiskSize

func (a *AzureCli) GetMaxEphemeralDiskSize(ctx context.Context, vmSize string) (spec.VMSizeEphemeralDiskSizeLimits, error)

func (*AzureCli) ListVirtualMachines

func (a *AzureCli) ListVirtualMachines(ctx context.Context, poolID string) ([]*armcompute.VirtualMachine, error)

func (*AzureCli) Location

func (a *AzureCli) Location() string

func (*AzureCli) SetClients

func (a *AzureCli) SetClients(rgCli *armresources.ResourceGroupsClient, netCli *armnetwork.VirtualNetworksClient, subnetCli *armnetwork.SubnetsClient, nsgCli *armnetwork.SecurityGroupsClient, nicCli *armnetwork.InterfacesClient, vmCli *armcompute.VirtualMachinesClient, pubIPCli *armnetwork.PublicIPAddressesClient, extCli *armcompute.VirtualMachineExtensionsClient, skuCli *armcompute.ResourceSKUsClient)

func (*AzureCli) SetConfig

func (a *AzureCli) SetConfig(cfg *config.Config)

func (*AzureCli) SetLocation

func (a *AzureCli) SetLocation(location string)

func (*AzureCli) StartVM

func (a *AzureCli) StartVM(ctx context.Context, vmName string) error

Jump to

Keyboard shortcuts

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