Documentation ¶
Index ¶
- Constants
- type AWSConfig
- type AWSPrivateEndpointRequest
- type AwsAction
- func (a *AwsAction) AcceptVpcPeeringConnection(connectionID, region string) error
- func (a *AwsAction) CreateKMS(alias, region, atlasAccountArn, assumedRoleArn string) (string, error)
- func (a *AwsAction) CreatePrivateEndpoint(serviceName, privateEndpointName, region string) (string, error)
- func (a *AwsAction) GetAccountID() (string, error)
- func (a *AwsAction) GetPrivateEndpoint(endpointID, region string) (*ec2.VpcEndpoint, error)
- func (a *AwsAction) InitNetwork(vpcName, cidr, region string, subnets map[string]string, cleanup bool) (string, error)
- type AzureAction
- func (a *AzureAction) CreateKeyVault(keyName string) (string, error)
- func (a *AzureAction) CreatePrivateEndpoint(vpcName, subnetName, endpointName, serviceID, region string) (*armnetwork.PrivateEndpoint, error)
- func (a *AzureAction) GetInterface(name string) (*armnetwork.Interface, error)
- func (a *AzureAction) GetPrivateEndpoint(endpointName string) (*armnetwork.PrivateEndpoint, error)
- func (a *AzureAction) InitNetwork(vpcName, cidr, region string, subnets map[string]string, cleanup bool) (string, error)
- type AzureConfig
- type AzurePrivateEndpointRequest
- type GCPAction
- func (a *GCPAction) CreateKMS() (string, error)
- func (a *GCPAction) CreateNetworkPeering(vpcName, peerProjectID, peerVPCName string) error
- func (a *GCPAction) CreatePrivateEndpoint(ctx context.Context, name, region, subnet, target string, index int) (string, string, error)
- func (a *GCPAction) GetForwardingRule(name, region string, suffixIndex int) (*computepb.ForwardingRule, error)
- func (a *GCPAction) InitNetwork(vpcName, region string, subnets map[string]string, cleanup bool) (string, error)
- type GCPConfig
- type GCPPrivateEndpoint
- type GCPPrivateEndpointRequest
- type PrivateEndpointDetails
- type PrivateEndpointRequest
- type Provider
- type ProviderAction
- func (a *ProviderAction) GetAWSAccountID() string
- func (a *ProviderAction) SetupNetwork(providerName provider.ProviderName, config ProviderConfig) string
- func (a *ProviderAction) SetupNetworkPeering(providerName provider.ProviderName, peerID, peerVPC string)
- func (a *ProviderAction) SetupPrivateEndpoint(request PrivateEndpointRequest) *PrivateEndpointDetails
- func (a *ProviderAction) ValidatePrivateEndpointStatus(providerName provider.ProviderName, endpoint, region string, ...)
- type ProviderConfig
Constants ¶
View Source
const ( GCPRegion = "europe-west1" AWSRegion = "eu-west-2" AzureRegion = "northeurope" ResourceGroupName = "svet-test" Subnet1Name = "atlas-operator-e2e-test-subnet1" Subnet2Name = "atlas-operator-e2e-test-subnet2" Subnet1CIDR = "10.0.0.0/25" Subnet2CIDR = "10.0.0.128/25" )
View Source
const (
AzureKeyVaultName = "ako-kms-test"
)
View Source
const ( // TODO get from GCP GoogleProjectID = "atlasoperator" // Google Cloud Project ID )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AwsAction ¶
type AwsAction struct {
// contains filtered or unexported fields
}
func NewAWSAction ¶
func NewAWSAction(t core.GinkgoTInterface) (*AwsAction, error)
func (*AwsAction) AcceptVpcPeeringConnection ¶
func (*AwsAction) CreatePrivateEndpoint ¶
func (*AwsAction) GetAccountID ¶
func (*AwsAction) GetPrivateEndpoint ¶
func (a *AwsAction) GetPrivateEndpoint(endpointID, region string) (*ec2.VpcEndpoint, error)
type AzureAction ¶
type AzureAction struct {
// contains filtered or unexported fields
}
func NewAzureAction ¶
func NewAzureAction(t core.GinkgoTInterface, subscriptionID, resourceGroupName string) (*AzureAction, error)
func (*AzureAction) CreateKeyVault ¶
func (a *AzureAction) CreateKeyVault(keyName string) (string, error)
func (*AzureAction) CreatePrivateEndpoint ¶
func (a *AzureAction) CreatePrivateEndpoint(vpcName, subnetName, endpointName, serviceID, region string) (*armnetwork.PrivateEndpoint, error)
func (*AzureAction) GetInterface ¶
func (a *AzureAction) GetInterface(name string) (*armnetwork.Interface, error)
func (*AzureAction) GetPrivateEndpoint ¶
func (a *AzureAction) GetPrivateEndpoint(endpointName string) (*armnetwork.PrivateEndpoint, error)
func (*AzureAction) InitNetwork ¶
type AzureConfig ¶
type GCPAction ¶
type GCPAction struct {
// contains filtered or unexported fields
}
func NewGCPAction ¶
func NewGCPAction(t core.GinkgoTInterface, projectID string) (*GCPAction, error)
func (*GCPAction) CreateNetworkPeering ¶
func (*GCPAction) CreatePrivateEndpoint ¶
func (*GCPAction) GetForwardingRule ¶
type GCPPrivateEndpoint ¶
type PrivateEndpointDetails ¶
type PrivateEndpointDetails struct { ProviderName provider.ProviderName Region string ID string IP string GCPProjectID string EndpointGroupName string Endpoints []GCPPrivateEndpoint }
type PrivateEndpointRequest ¶
type PrivateEndpointRequest interface {
// contains filtered or unexported methods
}
type Provider ¶
type Provider interface { GetAWSAccountID() string SetupNetwork(providerName provider.ProviderName, configs ProviderConfig) string SetupPrivateEndpoint(request PrivateEndpointRequest) *PrivateEndpointDetails ValidatePrivateEndpointStatus(providerName provider.ProviderName, endpoint, region string, gcpNumAttachments int) SetupNetworkPeering(providerName provider.ProviderName, peerID, peerVPC string) }
type ProviderAction ¶
type ProviderAction struct {
// contains filtered or unexported fields
}
func NewProviderAction ¶
func NewProviderAction(t core.GinkgoTInterface, aws *AwsAction, gcp *GCPAction, azure *AzureAction) *ProviderAction
func (*ProviderAction) GetAWSAccountID ¶
func (a *ProviderAction) GetAWSAccountID() string
func (*ProviderAction) SetupNetwork ¶
func (a *ProviderAction) SetupNetwork(providerName provider.ProviderName, config ProviderConfig) string
func (*ProviderAction) SetupNetworkPeering ¶
func (a *ProviderAction) SetupNetworkPeering(providerName provider.ProviderName, peerID, peerVPC string)
func (*ProviderAction) SetupPrivateEndpoint ¶
func (a *ProviderAction) SetupPrivateEndpoint(request PrivateEndpointRequest) *PrivateEndpointDetails
func (*ProviderAction) ValidatePrivateEndpointStatus ¶
func (a *ProviderAction) ValidatePrivateEndpointStatus(providerName provider.ProviderName, endpoint, region string, gcpNumAttachments int)
type ProviderConfig ¶
type ProviderConfig func(action *ProviderAction)
func WithAWSConfig ¶
func WithAWSConfig(config *AWSConfig) ProviderConfig
func WithAzureConfig ¶
func WithAzureConfig(config *AzureConfig) ProviderConfig
func WithGCPConfig ¶
func WithGCPConfig(config *GCPConfig) ProviderConfig
Click to show internal directories.
Click to hide internal directories.