ec2

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type EC2

type EC2 struct {
	Service ec2iface.EC2API
	// contains filtered or unexported fields
}

EC2 is a wrapper around the aws EC2 service with some default config info

func New added in v0.12.4

func New(opts ...EC2Option) EC2

func NewSession

func NewSession(account common.Account) EC2

NewSession creates a new EFS session

func (*EC2) GetSubnet

func (e *EC2) GetSubnet(ctx context.Context, subnet string) (*ec2.Subnet, error)

type EC2Option added in v0.12.4

type EC2Option func(*EC2)

func WithCredentials added in v0.12.4

func WithCredentials(key, secret, token, region string) EC2Option

func WithSession added in v0.12.4

func WithSession(sess *session.Session) EC2Option

Jump to

Keyboard shortcuts

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