network

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound determines if the passed in error is a not found error from the API.

func NewNetworkProfile added in v0.6.3

func NewNetworkProfile(name, location, subnetID string) *network.Profile

NewNetworkProfile creates a new instance of network profile

func NewSubnetWithContainerInstanceDelegation added in v0.6.3

func NewSubnetWithContainerInstanceDelegation(name, addressPrefix string) *network.Subnet

NewSubnetWithContainerInstanceDelegation creates the subnet instance with ACI delegation

Types

type Client

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

Client is a client for interacting with Azure networking

func NewClient

func NewClient(azAuth *azure.Authentication, extraUserAgent string) (*Client, error)

NewClient creates a new client for interacting with azure networking

func (*Client) CreateOrUpdateProfile

func (c *Client) CreateOrUpdateProfile(resourceGroup string, p *network.Profile) (*network.Profile, error)

CreateOrUpdateProfile creates or updates an Azure network profile

func (*Client) CreateOrUpdateSubnet

func (c *Client) CreateOrUpdateSubnet(resourceGroup, vnet string, s *network.Subnet) (*network.Subnet, error)

CreateOrUpdateSubnet creates a new or updates an existing subnet in the defined resourcegroup/vnet

func (*Client) GetProfile

func (c *Client) GetProfile(resourceGroup, name string) (*network.Profile, error)

GetProfile gets the network profile with the provided name

func (*Client) GetSubnet

func (c *Client) GetSubnet(resourceGroup, vnet, name string) (*network.Subnet, error)

GetSubnet gets the subnet from the specified resourcegroup/vnet

Jump to

Keyboard shortcuts

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