networkpeer

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubscriptionID = "AZURE_SUBSCRIPTION_ID"
	DirectoryID    = "AZURE_TENANT_ID"
)
View Source
const AzureResourceGroupName = "atlas-operator-test"
View Source
const AzureVPCName = "test-vnet"
View Source
const GCPVPCName = "network-peering-gcp-1-vpc"

Variables

This section is empty.

Functions

func CreateVPCForAzure

func CreateVPCForAzure(subscriptionID, location, resourceGroup, vnetName string) error

func CreateVPCForGCP

func CreateVPCForGCP(gcpProjectID string, vnetName string) error

func DeletePeerConnectionAndVPCForAWS

func DeletePeerConnectionAndVPCForAWS(conID string, region string) error

func DeletePeerVPC

func DeletePeerVPC(peers []status.AtlasNetworkPeer) []error

func DeleteVPCForAzure

func DeleteVPCForAzure(subscriptionID, resourceGroup, vnetName string) error

func DeleteVPCForGCP

func DeleteVPCForGCP(gcpProjectID, vnetName string) error

func EstablishAWSPeerConnection

func EstablishAWSPeerConnection(peer status.AtlasNetworkPeer) error

func EstablishGCPPeerConnectionWithVPC

func EstablishGCPPeerConnectionWithVPC(gpcProjectID, vnetName, atlasGCPProjectID, atlasVnetName string) error

func EstablishPeerConnections

func EstablishPeerConnections(peers []status.AtlasNetworkPeer) error

func PreparePeerVPC

func PreparePeerVPC(peers []v1.NetworkPeer) error

Types

type AWSNetworkPeer

type AWSNetworkPeer struct {
	// contains filtered or unexported fields
}

func NewAWSNetworkPeerService

func NewAWSNetworkPeerService(region string) (AWSNetworkPeer, error)

func (*AWSNetworkPeer) CreateVPCForAWS

func (p *AWSNetworkPeer) CreateVPCForAWS(appCidr string) (string, string, error)

Jump to

Keyboard shortcuts

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