aws

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 1 module, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// PluginName for AWS IID
	PluginName = "aws_iid"
	// AccessKeyIDVarName env var name for AWS access key ID
	AccessKeyIDVarName = "AWS_ACCESS_KEY_ID"
	// SecretAccessKeyVarName env car name for AWS secret access key
	SecretAccessKeyVarName = "AWS_SECRET_ACCESS_KEY" //nolint: gosec // false positive
)

Variables

This section is empty.

Functions

func AttestationStepError

func AttestationStepError(step string, cause error) error

AttestationStepError error with attestation

func NewAWSSession

func NewAWSSession(accessKeyID, secretAccessKey, region string) (*session.Session, error)

NewAWSSession create an AWS Session from the config and given region

Types

type IIDAttestationData

type IIDAttestationData struct {
	Document  string `json:"document"`
	Signature string `json:"signature"`
}

IIDAttestationData AWS IID attestation data

type SessionConfig

type SessionConfig struct {
	AccessKeyID     string `hcl:"access_key_id"`
	SecretAccessKey string `hcl:"secret_access_key"`
}

SessionConfig is a common config for AWS session config.

Jump to

Keyboard shortcuts

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