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: 10 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 an azure peering client

func New

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

New will return a new azure peering client

func (*Client) Create

func (c *Client) Create(ctx context.Context, request CreatePeeringRequest) error

Create will create a peering connection

func (*Client) List

func (c *Client) List(ctx context.Context, resourceGroup, vnet string) error

List will list existing peering connections

type Config

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

Config is an azure peering config

type CreatePeeringRequest

type CreatePeeringRequest struct {
	SourceResourceGroup       string
	SourceVnetName            string
	SourcePeeringName         string
	RemoteVnetID              string
	AllowVirtualNetworkAccess bool
	AllowForwardedTraffic     bool
	AllowGatewayTransit       bool
	UseRemoteGateways         bool
}

CreatePeeringRequest is a request to creating a peering

Jump to

Keyboard shortcuts

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