aws

package
v0.0.0-...-343363f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAWSSession

func CreateAWSSession(opt *Options) (*session.Session, error)

AWSSession creates a session for AWS services handling

func Discover

func Discover(username, password string, emitFn func(result shared.CloudDiscoveryResult))

func NewECRClient

func NewECRClient(opt Options) *ecrClient

NewECRClient creates a new ECR client (Amazon Elastic Container Registry)

func NewECSClient

func NewECSClient(opt Options) *ecsClient

NewECSClient creates a new ECS (Amazon Elastic Container Service) client

func NewEKSClient

func NewEKSClient(options Options) *eksClient

NewEKSClient creates a new EKS (Amazon Elastic Kubernetes Service) client

func NewLambdaClient

func NewLambdaClient(opt Options) *lambdaClient

NewServerlessClientAWS create a new aws serverless client

Types

type Options

type Options struct {
	AccessKeyID     string // AccessKeyID is the access key ID to aws services
	SecretAccessKey string // SecretAccessKey is the secret access key to aws services
	Region          string // Region is the region in query
	UseAWSRole      bool   // UseAWSRole is a flag indicates if local IAM role should be used for authentication, than username and password would be ignored
}

Options are options for getting credentials for AWS services

Jump to

Keyboard shortcuts

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