Documentation
¶
Index ¶
- Variables
- func EnvDynamoDBEndpoint() string
- func EnvEC2Endpoint() string
- func EnvEndpoint() string
- func EnvKMSEndpoint() string
- func EnvRegion() string
- func EnvS3Endpoint() string
- func EnvSNSEndpoint() string
- func EnvSQSEndpoint() string
- type Config
- type DebugTransport
- type Endpoints
- func (e Endpoints) GetDynamoDB() aws.ResolveWithEndpoint
- func (e Endpoints) GetEC2() aws.ResolveWithEndpoint
- func (e Endpoints) GetKMS() aws.ResolveWithEndpoint
- func (e Endpoints) GetS3() aws.ResolveWithEndpoint
- func (e Endpoints) HasDynamoDB() bool
- func (e Endpoints) HasEC2() bool
- func (e Endpoints) HasKMS() bool
- func (e Endpoints) HasS3() bool
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDebugTransport = &DebugTransport{ Transport: http.DefaultTransport, }
Functions ¶
func EnvDynamoDBEndpoint ¶
func EnvDynamoDBEndpoint() string
EnvDynamoDBEndpoint get DynamoDB endpoint from env vars.
func EnvKMSEndpoint ¶ added in v0.0.4
func EnvKMSEndpoint() string
EnvKMSEndpoint get KMS endpoint from env vars.
Types ¶
type Config ¶
type Config struct {
Region string
CommonEndpoint string
Endpoints Endpoints
Logger log.Logger
EnableDefaultCreds bool
// Static Credentials
AccessKey string
SecretKey string
// File Credentials
Filename string
Profile string
// DefaultPrefix is used for service resource prefix
// e.g.) DynamoDB table, S3 bucket, SQS Queue
DefaultPrefix string
// Specific sevice's options
S3ForcePathStyle bool
// Custom Function to wrap errors.
ErrWrap func(errors.ErrorData) error
// Custom HTTP Client
CustomHTTPClient *http.Client
// Showing req/resp data when `true` (Cannot use with CustomHTTPClient)
UseDebugRequest bool
}
Config has AWS settings.
type DebugTransport ¶ added in v0.2.0
type DebugTransport struct {
Transport http.RoundTripper
}
DebugTransport implements http.RoundTripper and showing request/response contents.
type Endpoints ¶
func (Endpoints) GetDynamoDB ¶ added in v0.0.3
func (e Endpoints) GetDynamoDB() aws.ResolveWithEndpoint
func (Endpoints) GetEC2 ¶
func (e Endpoints) GetEC2() aws.ResolveWithEndpoint
func (Endpoints) GetKMS ¶ added in v0.0.4
func (e Endpoints) GetKMS() aws.ResolveWithEndpoint
func (Endpoints) GetS3 ¶
func (e Endpoints) GetS3() aws.ResolveWithEndpoint
func (Endpoints) HasDynamoDB ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.