Documentation ¶
Overview ¶
Package aws contains functions which wrap various Amazon Web Services APIs
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CallerIdentitifier ¶
type CallerIdentitifier interface {
GetCallerIdentity(*sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)
}
CallerIdentitifier - an interface to wrap GetCallerIdentity
type ClientOptions ¶
ClientOptions -
func GetClientOptions ¶
func GetClientOptions() ClientOptions
GetClientOptions - Centralised reading of AWS_TIMEOUT ... but cannot use in vault/auth.go as different strconv.Atoi error handling
type DummEC2MetadataProvider ¶ added in v3.11.0
type DummEC2MetadataProvider struct {
// contains filtered or unexported fields
}
func (DummEC2MetadataProvider) GetDynamicData ¶ added in v3.11.0
func (d DummEC2MetadataProvider) GetDynamicData(p string) (string, error)
func (DummEC2MetadataProvider) GetMetadata ¶ added in v3.11.0
func (d DummEC2MetadataProvider) GetMetadata(p string) (string, error)
func (DummEC2MetadataProvider) Region ¶ added in v3.11.0
func (d DummEC2MetadataProvider) Region() (string, error)
type DummyInstanceDescriber ¶
type DummyInstanceDescriber struct {
// contains filtered or unexported fields
}
DummyInstanceDescriber - test doubles
func (DummyInstanceDescriber) DescribeInstances ¶
func (d DummyInstanceDescriber) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
DescribeInstances -
type EC2Metadata ¶ added in v3.11.0
type Ec2Meta ¶
type Ec2Meta struct {
// contains filtered or unexported fields
}
Ec2Meta -
func MockEC2Meta ¶ added in v3.11.0
MockEC2Meta -
type InstanceDescriber ¶
type InstanceDescriber interface {
DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
}
InstanceDescriber - A subset of ec2iface.EC2API that we can use to call EC2.DescribeInstances
type KMS ¶
type KMS struct {
Client KMSAPI
}
KMS is an AWS KMS client
func NewKMS ¶
func NewKMS(_ ClientOptions) *KMS
NewKMS - Create new AWS KMS client using an SDKSession
type KMSAPI ¶
type KMSAPI interface { Encrypt(input *kms.EncryptInput) (*kms.EncryptOutput, error) Decrypt(input *kms.DecryptInput) (*kms.DecryptOutput, error) }
KMSAPI is a subset of kmsiface.KMSAPI
Click to show internal directories.
Click to hide internal directories.