network

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 11 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 NewClientConfigByCloud added in v1.3.0

func NewClientConfigByCloud(azAuth *azure.Authentication) auth.ClientCredentialsConfig

func NewMSIConfigByCloud added in v1.3.0

func NewMSIConfigByCloud(azAuth *azure.Authentication) auth.MSIConfig

func NewNetworkProfile

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

NewNetworkProfile creates a new instance of network profile

func NewSubnetWithContainerInstanceDelegation

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, retryConfig azure.HTTPRetryConfig) (*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