aws

package
v0.0.0-...-088e69e Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSession

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

func GetSession

func GetSession(ctx context.Context, creds Creds) (*AwsSession, error)

func NewAwsSession

func NewAwsSession(sess *session.Session) *AwsSession

NewAwsSession creates a new AWS session.

func (*AwsSession) CreateVM

func (c *AwsSession) CreateVM(vm *v1.Vm) error

CreateVM creates a new EC2 instance with given specs.

func (*AwsSession) DeleteVM

func (c *AwsSession) DeleteVM(vm *v1.Vm) error

DeleteVM deletes the existing EC2 instance.

func (*AwsSession) GetExistingVM

func (c *AwsSession) GetExistingVM(vm *v1.Vm) error

GetExistingVM gets the existing EC2 instance details.

type Creds

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

func GetAWSCredentials

func GetAWSCredentials(ctx context.Context, k8sClient client.Client, secretRef *awsv1.CredentialsSecret) (Creds, error)

Jump to

Keyboard shortcuts

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