subnet

package
v0.0.0-...-6997415 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NSGControlPlaneSuffixV1 = "-controlplane-nsg"
	NSGNodeSuffixV1         = "-node-nsg"
	NSGSuffixV2             = "-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 NetworkSecurityGroupIDExpanded

func NetworkSecurityGroupIDExpanded(architectureVersion api.ArchitectureVersion, resourceGroupID, infraID string, isWorkerSubnet bool) (string, error)

NetworkSecurityGroupIDExpanded returns the NetworkSecurityGroup ID for a given subnetID, without the OpenShift Cluster document

func Split

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

Split splits the given subnetID into a vnetID and subnetName

Types

type Subnet

type Subnet struct {
	ResourceID string
	IsMaster   bool
}

Jump to

Keyboard shortcuts

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