Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSCredentialType ¶
type AWSCredentialType string
const ( AWSCredentialTypeStatic AWSCredentialType = "static" AWSCredentialTypeRole AWSCredentialType = "role" )
type Config ¶
type Config struct {
Credentials Credentials `toml:"credentials"`
SubnetID string `toml:"subnet_id"`
Region string `toml:"region"`
}
type Credentials ¶
type Credentials struct {
CredentialType AWSCredentialType `toml:"credential_type"`
StaticCredentials StaticCredentials `toml:"static"`
}
func (Credentials) Validate ¶
func (c Credentials) Validate() error
type StaticCredentials ¶
type StaticCredentials struct {
// AWS Access key ID
AccessKeyID string `toml:"access_key_id"`
// AWS Secret Access Key
SecretAccessKey string `toml:"secret_access_key"`
// AWS Session Token
SessionToken string `toml:"session_token"`
}
func (StaticCredentials) Validate ¶
func (c StaticCredentials) Validate() error
Click to show internal directories.
Click to hide internal directories.