aws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsResource

type AwsResource interface {
	Name() string
	GetCredential() (Credential, error)
}

AWSResource is used to retrieve the IAM credential. This is required since how an AWS Resource gets an IAM credential depending on its type.AwsResource For example lambda gets these credenails via environment variables, while ec2 gets it from a static metadata URL and ecs gets it from a dynamic URL.

type Credential

type Credential struct {
	AccessKeyID     string `json:"AccessKeyId"`
	SecretAccessKey string `json:"SecretAccessKey"`
	Token           string `json:"Token"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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