azure

package
v0.0.0-...-7c19135 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is the client for the azure networks peering package

func New

func New(conf Config) (*Client, error)

New will return a new azure networks client

func (*Client) CreateNetworkProfile

func (c *Client) CreateNetworkProfile(ctx context.Context, req NetworkProfileRequest) error

CreateNetworkProfile will create an azure network profile

func (*Client) ListNetworkProfiles

func (c *Client) ListNetworkProfiles(ctx context.Context, resourceGroupName string) error

ListNetworkProfiles will list all network profiles for a given resource group

type Config

type Config struct {
	azure_auth.AuthConfig
	Logger *logrus.Entry
}

Config is the configuration for the azure networks peering package

type NetworkProfileRequest

type NetworkProfileRequest struct {
	Name              string
	ResourceGroupName string
	Location          string
	VnetName          string
	VnetAddressCIDR   string
	SubnetName        string
	SubnetAddressCIDR string
}

NetworkProfileRequest is a request for a new network profile

Jump to

Keyboard shortcuts

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