Versions in this module Expand all Collapse all v3 v3.9.1 May 31, 2021 Changes in this version + var DefaultEndpoint = "http://169.254.169.254" + func MockHTTPServer(code int, body string) (*httptest.Server, *http.Client) + func SDKSession(region ...string) *session.Session + type CallerIdentitifier interface + GetCallerIdentity func(*sts.GetCallerIdentityInput) (*sts.GetCallerIdentityOutput, error) + type ClientOptions struct + Timeout time.Duration + func GetClientOptions() ClientOptions + type DummyInstanceDescriber struct + func (d DummyInstanceDescriber) DescribeInstances(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) + type Ec2Info struct + func NewDummyEc2Info(metaClient *Ec2Meta) *Ec2Info + func NewEc2Info(options ClientOptions) (info *Ec2Info) + func (e *Ec2Info) Tag(tag string, def ...string) (string, error) + func (e *Ec2Info) Tags() (map[string]string, error) + type Ec2Meta struct + Client *http.Client + Endpoint string + func MockServer(code int, body string) (*httptest.Server, *Ec2Meta) + func NewDummyEc2Meta() *Ec2Meta + func NewEc2Meta(options ClientOptions) *Ec2Meta + func (e *Ec2Meta) Dynamic(key string, def ...string) (string, error) + func (e *Ec2Meta) Meta(key string, def ...string) (string, error) + func (e *Ec2Meta) Region(def ...string) (string, error) + type InstanceDescriber interface + DescribeInstances func(*ec2.DescribeInstancesInput) (*ec2.DescribeInstancesOutput, error) + type InstanceDocument struct + AccountID string + Architecture string + AvailabilityZone string + ImageID string + InstanceID string + InstanceType string + PrivateIP string + Region string + type KMS struct + Client KMSAPI + func NewKMS(option ClientOptions) *KMS + func (k *KMS) Decrypt(ciphertext string) (string, error) + func (k *KMS) Encrypt(keyID, plaintext string) (string, error) + type KMSAPI interface + Decrypt func(input *kms.DecryptInput) (*kms.DecryptOutput, error) + Encrypt func(input *kms.EncryptInput) (*kms.EncryptOutput, error) + type STS struct + func NewSTS(options ClientOptions) *STS + func (s *STS) Account() (string, error) + func (s *STS) Arn() (string, error) + func (s *STS) UserID() (string, error) Other modules containing this package github.com/duffpl/gomplate