subnet

package
v0.0.0-...-a580c8e Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NSGControlPlaneSuffix = "-controlplane-nsg"
	NSGNodeSuffix         = "-node-nsg"
)

Network security group constants

Variables

This section is empty.

Functions

func NetworkSecurityGroupID

func NetworkSecurityGroupID(oc *api.OpenShiftCluster, subnetID string) (string, error)

NetworkSecurityGroupID returns the NetworkSecurityGroup ID for a given subnet ID

func Split

func Split(subnetID string) (string, string, error)

Split splits the given subnetID into a vnetID and subnetName

Types

type Manager

type Manager interface {
	Get(ctx context.Context, subnetID string) (*mgmtnetwork.Subnet, error)
	CreateOrUpdate(ctx context.Context, subnetID string, subnet *mgmtnetwork.Subnet) error
}

func NewManager

func NewManager(subscriptionID string, spAuthorizer autorest.Authorizer) Manager

Jump to

Keyboard shortcuts

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