network

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 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 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) CreateOrUpdateSubnet

func (c *Client) CreateOrUpdateSubnet(subscriptionID, 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) GetSubnet

func (c *Client) GetSubnet(subscriptionID, 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