Documentation ¶
Overview ¶
Package aws contains functions which wrap various Amazon Web Services APIs
Index ¶
- Variables
- func MockHTTPServer(code int, body string) (*httptest.Server, *http.Client)
- func SDKSession(region ...string) *session.Session
- type CallerIdentitifier
- type ClientOptions
- type DummyInstanceDescriber
- type Ec2Info
- type Ec2Meta
- type InstanceDescriber
- type InstanceDocument
- type KMS
- type KMSAPI
- type STS
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultEndpoint = "http://169.254.169.254"
DefaultEndpoint -
Functions ¶
func MockHTTPServer ¶
MockHTTPServer -
Types ¶
type CallerIdentitifier ¶
type CallerIdentitifier interface {
GetCallerIdentity(*sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error)
}
CallerIdentitifier - an interface to wrap GetCallerIdentity
type ClientOptions ¶ added in v1.9.1
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 DummyInstanceDescriber ¶ added in v1.8.0
type DummyInstanceDescriber struct {
// contains filtered or unexported fields
}
DummyInstanceDescriber - test doubles
func (DummyInstanceDescriber) DescribeInstances ¶ added in v1.8.0
func (d DummyInstanceDescriber) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error)
DescribeInstances -
type Ec2Info ¶
type Ec2Info struct {
// contains filtered or unexported fields
}
Ec2Info -
func NewDummyEc2Info ¶ added in v1.8.0
NewDummyEc2Info -
type Ec2Meta ¶
type Ec2Meta struct { Endpoint string Client *http.Client // contains filtered or unexported fields }
Ec2Meta -
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 InstanceDocument ¶
type InstanceDocument struct { PrivateIP string `json:"privateIp"` AvailabilityZone string `json:"availabilityZone"` InstanceID string `json:"InstanceId"` InstanceType string `json:"InstanceType"` AccountID string `json:"AccountId"` ImageID string `json:"imageId"` Architecture string `json:"architecture"` Region string `json:"region"` }
InstanceDocument -
type KMS ¶
type KMS struct {
Client KMSAPI
}
KMS is an AWS KMS client
func NewKMS ¶
func NewKMS(option 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.