aws

package
v0.0.0-...-e5c8c29 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BUCKET_NAME = "tce-velero-e2e-test-backup"
	REGION      = "us-east-1"
)
View Source
const AccessKey = "AWS_ACCESS_KEY_ID"
View Source
const AccountID = "AWS_ACCOUNT_ID"
View Source
const B64Creds = "AWS_B64ENCODED_CREDENTIALS"
View Source
const Region = "AWS_REGION"
View Source
const SecretKey = "AWS_SECRET_ACCESS_KEY"
View Source
const SshPublicName = "AWS_SSH_KEY_NAME"

Variables

View Source
var PROVIDER utils.Provider = &Provider{}

TODO: Change name?

Functions

func EmptyS3Bucket

func EmptyS3Bucket()

Types

type Provider

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

TODO: Change name?

func (*Provider) CleanupCluster

func (provider *Provider) CleanupCluster(ctx context.Context, clusterName string) error

func (*Provider) GetTanzuConfig

func (provider *Provider) GetTanzuConfig(clusterName string) tanzu.TanzuConfig

TODO: Maybe make use of https://github.com/spf13/viper to set env vars and make some values as default and parameterised.

func (*Provider) Init

func (provider *Provider) Init() error

func (*Provider) Name

func (provider *Provider) Name() string

func (*Provider) PreClusterCreationTasks

func (provider *Provider) PreClusterCreationTasks(clusterName string, clusterType utils.ClusterType) error

func (*Provider) RequiredEnvVars

func (provider *Provider) RequiredEnvVars() []string

type TestSecrets

type TestSecrets struct {
	AccountID     string
	AccessKey     string
	SecretKey     string
	B64Creds      string
	Region        string
	SshPublicName string
}

func ExtractAwsTestSecretsFromEnvVars

func ExtractAwsTestSecretsFromEnvVars() TestSecrets

Jump to

Keyboard shortcuts

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