cloud

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TODO get from Azure
	ResourceGroup = "svet-test"
	Vpc           = "svet-test-vpc"
	SubnetName    = "default"
)
View Source
const (
	// TODO get from GCP
	GoogleProjectID  = "atlasoperator"             // Google Cloud Project ID
	GoogleVPC        = "atlas-operator-test"       // VPC Name
	GoogleSubnetName = "atlas-operator-subnet-leo" // Subnet Name

)

Variables

This section is empty.

Functions

func FormAddressNameByRuleName added in v1.2.0

func FormAddressNameByRuleName(ruleName string) (string, error)

func FormForwardRuleNameByAddressName added in v1.2.0

func FormForwardRuleNameByAddressName(addressName string) (string, error)

Types

type AwsAction added in v1.3.0

type AwsAction struct{}

func NewAwsAction added in v1.3.0

func NewAwsAction() *AwsAction

func (*AwsAction) CreateKMS added in v1.3.0

func (awsAction *AwsAction) CreateKMS(region, atlasAccountArn, assumedRoleArn string) (key string, err error)

type CloudActions

type CloudActions interface {
	// contains filtered or unexported methods
}

type Endpoints added in v1.0.0

type Endpoints struct {
	IP   string
	Name string
}

type PEActions

type PEActions struct {
	CloudActions    CloudActions
	PrivateEndpoint status.ProjectPrivateEndpoint
}

func CreatePEActions

func CreatePEActions(pe status.ProjectPrivateEndpoint) (PEActions, error)

func (*PEActions) CreatePrivateEndpoint

func (peActions *PEActions) CreatePrivateEndpoint(name string) (v1.PrivateEndpoint, error)

func (*PEActions) DeletePrivateEndpoint

func (peActions *PEActions) DeletePrivateEndpoint(name string) error

func (*PEActions) IsStatusPrivateEndpointAvailable

func (peActions *PEActions) IsStatusPrivateEndpointAvailable(privateID string) bool

func (*PEActions) IsStatusPrivateEndpointPending

func (peActions *PEActions) IsStatusPrivateEndpointPending(privateID string) bool

privateID is different for different clouds: privateID for AWS or PEname for AZURE AWS = PrivateID, AZURE = privateEndpoint Name GCP = prefix

Jump to

Keyboard shortcuts

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