aws

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnvVars

func EnvVars() []string

func SharedConfigDir

func SharedConfigDir(user string) string

Types

type AMI

type AMI struct {
	Name    string
	ID      string
	Created string
	Tags    map[string]string
}

func (AMI) CreationDate

func (a AMI) CreationDate() string

type AMIManager

type AMIManager interface {
	List(ctx context.Context) ([]AMI, error)
	Delete(ctx context.Context, id string) error
}

type BucketManager

type BucketManager interface {
	Create(ctx context.Context, name string) error
	Delete(ctx context.Context, name string) error
}

type EC2

type EC2 struct{}

func (EC2) Delete

func (m EC2) Delete(ctx context.Context, amiID string) error

func (EC2) List

func (m EC2) List(ctx context.Context) ([]AMI, error)

type S3Client

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

func NewS3Client

func NewS3Client(ctx context.Context) (*S3Client, error)

func (S3Client) Create

func (c S3Client) Create(ctx context.Context, name string) error

func (S3Client) Delete

func (c S3Client) Delete(ctx context.Context, name string) error

Jump to

Keyboard shortcuts

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