aws

package
v0.34.8 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Copyright 2020-2021 The UnDistro authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	DefaultAWSRegion = "us-east-1"
)

Variables

View Source
var Regions = []string{
	"ap-northeast-1",
	"ap-northeast-2",
	"ap-south-1",
	"ap-southeast-1",
	"ap-northeast-2",
	"ca-central-1",
	"eu-central-1",
	"eu-west-1",
	"eu-west-2",
	"eu-west-3",
	"sa-east-1",
	"us-east-1",
	"us-east-2",
	"us-west-1",
	"us-west-2",
}

Functions

func GetFlavors added in v0.32.0

func GetMachineMetadata added in v0.32.0

func GetMachineMetadata(_ context.Context, p metadatav1alpha1.Provider) ([]client.Object, error)

func Init

func Init(ctx context.Context, c client.Client) error

Init providers

func InstallTools added in v0.21.0

func InstallTools(ctx context.Context, streams genericclioptions.IOStreams) error

func ReconcileLaunchTemplate added in v0.19.3

func ReconcileLaunchTemplate(ctx context.Context, r client.Client, cl *appv1alpha1.Cluster) error

func ReconcileNetwork added in v0.18.9

func ReconcileNetwork(ctx context.Context, r client.Client, cl *appv1alpha1.Cluster, capiCluster *capi.Cluster) error

Types

type Account added in v0.19.5

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

func NewAccount added in v0.19.5

func NewAccount(ctx context.Context, c client.Client) (*Account, error)

func (*Account) GetID added in v0.19.5

func (a *Account) GetID() string

func (*Account) GetUsername added in v0.19.5

func (a *Account) GetUsername() string

func (*Account) IsRoot added in v0.19.5

func (a *Account) IsRoot() bool

type AwsCredentials added in v0.26.0

type AwsCredentials struct {
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
	Region          string
}

func Credentials added in v0.26.0

func Credentials(ctx context.Context, c client.Client) (AwsCredentials, *corev1.Secret, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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