Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aws ¶
type Aws struct { AccessKeyID string `toml:"AWS_ACCESS_KEY_ID"` SecretAccessKey string `toml:"AWS_SECRET_ACCESS_KEY"` Region string `toml:"AWS_REGION"` }
Aws define config about aws.
type Common ¶
type Common struct {
ColorizedOutput bool `toml:"colorized_output"`
}
Common define configs about common.
type Config ¶
Config describe configuration of ec2s.
func LoadConfig ¶
LoadConfig load toml config in the path.
func (*Config) AwsCredentials ¶
func (c *Config) AwsCredentials() *credentials.Credentials
AwsCredentials return credentials.Credentials instance.
type IdentityFile ¶
IdentityFile define config about identity file of ssh.
type SSH ¶
type SSH struct { Port int `toml:"port"` User string `toml:"user"` IdentityFiles []IdentityFile `toml:"identity_file"` }
SSH define config about ssh.
Click to show internal directories.
Click to hide internal directories.