vnet

package
v0.0.0-...-ac1131c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AzureSubnetManager

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

AzureSubnetManager is the struct that the manager functions hang off

func NewAzureSubnetManager

func NewAzureSubnetManager(creds config.Credentials) *AzureSubnetManager

NewAzureSubnetManager returns a new client for subnets

func (*AzureSubnetManager) Get

func (m *AzureSubnetManager) Get(ctx context.Context, resourceGroup, vnet, subnet string) (vnetwork.Subnet, error)

Get gets a Subnet from Azure

type AzureVNetManager

type AzureVNetManager struct {
	Creds     config.Credentials
	Telemetry telemetry.Telemetry
}

AzureVNetManager is the struct that the manager functions hang off

func NewAzureVNetManager

func NewAzureVNetManager(creds config.Credentials) *AzureVNetManager

NewAzureVNetManager creates a new instance of AzureVNetManager

func (*AzureVNetManager) CreateVNet

func (m *AzureVNetManager) CreateVNet(ctx context.Context, location string, resourceGroupName string, resourceName string, addressSpace string, subnets []azurev1alpha1.VNetSubnets) (vnetwork.VirtualNetwork, error)

CreateVNet creates VNets

func (*AzureVNetManager) Delete

Delete makes sure that the VNet has been deleted

func (*AzureVNetManager) DeleteVNet

func (m *AzureVNetManager) DeleteVNet(ctx context.Context, resourceGroupName string, resourceName string) (autorest.Response, error)

DeleteVNet deletes a VNet

func (*AzureVNetManager) Ensure

Ensure makes sure that an VNet instance exists

func (*AzureVNetManager) GetAvailableIP

func (m *AzureVNetManager) GetAvailableIP(ctx context.Context, resourceGroup, vnet, subnet string) (string, error)

func (*AzureVNetManager) GetParents

GetParents lists the parents for a VNet

func (*AzureVNetManager) GetStatus

func (*AzureVNetManager) GetVNet

func (m *AzureVNetManager) GetVNet(ctx context.Context, resourceGroupName string, resourceName string) (vNet vnetwork.VirtualNetwork, err error)

GetVNet gets a VNet

type SubnetID

type SubnetID struct {
	Name          string
	VNet          string
	Subnet        string
	ResourceGroup string
	Subscription  string
}

SubnetID models the parts of a subnet resource id

func ParseSubnetID

func ParseSubnetID(sid string) SubnetID

ParseSubnetID takes a resource id for a subnet and parses it into its parts

type VNetManager

type VNetManager interface {
	CreateVNet(ctx context.Context,
		location string,
		resourceGroupName string,
		resourceName string,
		addressSpace string,
		subnets []azurev1alpha1.VNetSubnets) (vnetwork.VirtualNetwork, error)

	DeleteVNet(ctx context.Context,
		resourceGroupName string,
		resourceName string) (autorest.Response, error)

	GetVNet(ctx context.Context,
		resourceGroupName string,
		resourceName string) (vnetwork.VirtualNetwork, error)

	GetAvailableIP(ctc context.Context, resourceGroup, vnet, subnet string) (string, error)

	// also embed async client methods
	resourcemanager.ARMClient
}

VNetManager manages VNet service components

Jump to

Keyboard shortcuts

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