Documentation ¶
Overview ¶
Package awsdocker contains the definition of the AWS Docker environment.
Index ¶
- func Provisioner(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.DockerHost]
- func Run(ctx *pulumi.Context, env *environments.DockerHost, runParams RunParams) error
- type ProvisionerOption
- func WithAgentOptions(opts ...dockeragentparams.Option) ProvisionerOption
- func WithEC2VMOptions(opts ...ec2.VMOption) ProvisionerOption
- func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption
- func WithFakeIntakeOptions(opts ...fakeintake.Option) ProvisionerOption
- func WithName(name string) ProvisionerOption
- func WithTestingWorkload() ProvisionerOption
- func WithoutAgent() ProvisionerOption
- func WithoutFakeIntake() ProvisionerOption
- type ProvisionerParams
- type RunParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Provisioner ¶
func Provisioner(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.DockerHost]
Provisioner creates a VM environment with an EC2 VM with Docker, an ECS Fargate FakeIntake and a Docker Agent configured to talk to each other. FakeIntake and Agent creation can be deactivated by using WithoutFakeIntake and WithoutAgent options.
func Run ¶ added in v0.52.0
func Run(ctx *pulumi.Context, env *environments.DockerHost, runParams RunParams) error
Run deploys a docker environment given a pulumi.Context
Types ¶
type ProvisionerOption ¶
type ProvisionerOption func(*ProvisionerParams) error
ProvisionerOption is a function that modifies the ProvisionerParams
func WithAgentOptions ¶
func WithAgentOptions(opts ...dockeragentparams.Option) ProvisionerOption
WithAgentOptions sets the options for the Docker Agent
func WithEC2VMOptions ¶
func WithEC2VMOptions(opts ...ec2.VMOption) ProvisionerOption
WithEC2VMOptions sets the options for the EC2 VM
func WithExtraConfigParams ¶
func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption
WithExtraConfigParams sets the extra config params for the environment
func WithFakeIntakeOptions ¶
func WithFakeIntakeOptions(opts ...fakeintake.Option) ProvisionerOption
WithFakeIntakeOptions sets the options for the FakeIntake
func WithName ¶
func WithName(name string) ProvisionerOption
WithName sets the name of the provisioner
func WithTestingWorkload ¶
func WithTestingWorkload() ProvisionerOption
WithTestingWorkload enables testing workload
func WithoutAgent ¶
func WithoutAgent() ProvisionerOption
WithoutAgent deactivates the creation of the Docker Agent
func WithoutFakeIntake ¶
func WithoutFakeIntake() ProvisionerOption
WithoutFakeIntake deactivates the creation of the FakeIntake
type ProvisionerParams ¶
type ProvisionerParams struct {
// contains filtered or unexported fields
}
ProvisionerParams contains all the parameters needed to create the environment
func GetProvisionerParams ¶ added in v0.52.0
func GetProvisionerParams(opts ...ProvisionerOption) *ProvisionerParams
GetProvisionerParams return ProvisionerParams from options opts setup
type RunParams ¶ added in v0.55.0
type RunParams struct { Environment *aws.Environment ProvisionerParams *ProvisionerParams }
RunParams contains parameters for the run function