Documentation
¶
Overview ¶
Package ec2docker contains the definition of the AWS Docker environment.
Index ¶
- func DockerRun(ctx *pulumi.Context) error
- func Run(ctx *pulumi.Context, awsEnv aws.Environment, env *environments.DockerHost, ...) error
- type Option
- func WithAgentOptions(opts ...dockeragentparams.Option) Option
- func WithEC2VMOptions(opts ...ec2.VMOption) Option
- func WithFakeIntakeOptions(opts ...fakeintake.Option) Option
- func WithName(name string) Option
- func WithPreAgentInstallHook(cb preAgentInstallHook) Option
- func WithTestingWorkload() Option
- func WithoutAgent() Option
- func WithoutFakeIntake() Option
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(ctx *pulumi.Context, awsEnv aws.Environment, env *environments.DockerHost, params *Params) error
Types ¶
type Option ¶
Option is a function that modifies the Params
func WithAgentOptions ¶
func WithAgentOptions(opts ...dockeragentparams.Option) Option
WithAgentOptions sets the options for the Docker Agent
func WithEC2VMOptions ¶
WithEC2VMOptions sets the options for the EC2 VM
func WithFakeIntakeOptions ¶
func WithFakeIntakeOptions(opts ...fakeintake.Option) Option
WithFakeIntakeOptions sets the options for the FakeIntake
func WithPreAgentInstallHook ¶
func WithPreAgentInstallHook(cb preAgentInstallHook) Option
WithPreAgentInstallHook adds a callback between host setup end and the agent starting up.
func WithTestingWorkload ¶
func WithTestingWorkload() Option
WithTestingWorkload enables testing workload
func WithoutAgent ¶
func WithoutAgent() Option
WithoutAgent deactivates the creation of the Docker Agent
func WithoutFakeIntake ¶
func WithoutFakeIntake() Option
WithoutFakeIntake deactivates the creation of the FakeIntake
type Params ¶
type Params struct {
Name string
// contains filtered or unexported fields
}
Params contains all the parameters needed to create the environment
func ParamsFromEnvironment ¶
func ParamsFromEnvironment(e aws.Environment) *Params
ParamsFromEnvironment builds Params by reading the configuration from the given AWS environment. It maps ConfigMap-driven flags to the Docker-on-EC2 scenario run parameters.