aznetwork

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NetworkStack

type NetworkStack struct {
	VNet      network.VirtualNetwork
	PublicIP  network.PublicIPAddress
	PrivateIP string
	Interface network.Interface
}

NetworkStack contains all the network info we need.

func CreateNetworkStack

func CreateNetworkStack(ctx context.Context, config azconfig.AZConfig, basename string) NetworkStack

CreateNetworkStack creates a virtual network, a public IP, and a NIC.

func GetNetworkStack

func GetNetworkStack(ctx context.Context, config azconfig.AZConfig, nicID string) NetworkStack

GetNetworkStack obtains virtual network components from a NIC.

func (*NetworkStack) FQDN

func (ns *NetworkStack) FQDN() string

FQDN returns the fully-qualified domain name.

func (*NetworkStack) SubnetID

func (ns *NetworkStack) SubnetID() string

SubnetID returns the subnet ID

Jump to

Keyboard shortcuts

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