Documentation
¶
Index ¶
- Constants
- type AWSEnv
- func (e *AWSEnv) Context(ctx context.Context) (context.Context, error)
- func (e *AWSEnv) Endpoints(_ context.Context) (*types.Endpoints, error)
- func (e *AWSEnv) ServiceLogs(ctx context.Context, _ []string, startTime time.Time, stdout, stderr io.Writer) error
- func (e *AWSEnv) SetUp(ctx context.Context) error
- func (e *AWSEnv) TearDown(ctx context.Context) error
- type Config
- type ConfigOptFn
- type ContextKeyType
- type Server
Constants ¶
View Source
const ( AWSClientContextKey ContextKeyType = "AWSClient" DefaultStackCreationTimeout = 30 * time.Minute DefaultSSHPortReadyTimeout = 2 * time.Minute DefaultRemoteUser = "ubuntu" )
View Source
const (
// DefaultRegion is the default AWS region to be used.
DefaultRegion = "eu-central-1"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AWSEnv ¶
type AWSEnv struct { *docker.DockerHelper // contains filtered or unexported fields }
AWS Environment.
func (*AWSEnv) ServiceLogs ¶
func (*AWSEnv) SetUp ¶
Setup AWS test environment from cloud formation template. * Create a new CloudFormation stack from template (upload template file to S3 is required since the template is larger than 51,200 bytes). * Create test asset. * When infrastructure is ready, start SSH port forwarding and remote docker client.
type Config ¶
type Config struct { // WorkDir absolute path to the directory where the deployment files prior performing actions WorkDir string `mapstructure:"work_dir"` // EnvName the name of the stack to be created EnvName string `mapstructure:"env_name"` // Region the AWS region to be used Region string `mapstructure:"region"` // PublicKeyFile the public key file to be used for the key pair PublicKeyFile string `mapstructure:"public_key_file"` // PrivateKeyFile the private key file to be used for the key pair PrivateKeyFile string `mapstructure:"private_key_file"` }
Config defines configuration for AWS environment.
type ConfigOptFn ¶
ConfigOptFn defines transformer function for Config.
type ContextKeyType ¶
type ContextKeyType string
Click to show internal directories.
Click to hide internal directories.