Documentation ¶
Overview ¶
Package gcphost contains the definition of the GCP Host environment.
Index ¶
- func Provisioner(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.Host]
- func ProvisionerNoAgentNoFakeIntake(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.Host]
- func ProvisionerNoFakeIntake(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.Host]
- func Run(ctx *pulumi.Context, env *environments.Host, runParams RunParams) error
- type ProvisionerOption
- func WithAgentClientOptions(opts ...agentclientparams.Option) ProvisionerOption
- func WithAgentOptions(opts ...agentparams.Option) ProvisionerOption
- func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption
- func WithFakeIntakeOptions(opts ...fakeintake.Option) ProvisionerOption
- func WithInstanceOptions(opts ...compute.VMOption) ProvisionerOption
- func WithName(name string) ProvisionerOption
- func WithUpdater() 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.Host]
Provisioner creates a VM environment with an VM, a FakeIntake and a Host Agent configured to talk to each other. FakeIntake and Agent creation can be deactivated by using WithoutFakeIntake and WithoutAgent options.
func ProvisionerNoAgentNoFakeIntake ¶
func ProvisionerNoAgentNoFakeIntake(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.Host]
ProvisionerNoAgentNoFakeIntake wraps Provisioner with hardcoded WithoutAgent and WithoutFakeIntake options.
func ProvisionerNoFakeIntake ¶
func ProvisionerNoFakeIntake(opts ...ProvisionerOption) e2e.TypedProvisioner[environments.Host]
ProvisionerNoFakeIntake wraps Provisioner with hardcoded WithoutFakeIntake option.
Types ¶
type ProvisionerOption ¶
type ProvisionerOption func(*ProvisionerParams) error
ProvisionerOption is a provisioner option.
func WithAgentClientOptions ¶
func WithAgentClientOptions(opts ...agentclientparams.Option) ProvisionerOption
WithAgentClientOptions adds options to the Agent client.
func WithAgentOptions ¶
func WithAgentOptions(opts ...agentparams.Option) ProvisionerOption
WithAgentOptions adds options to the Agent.
func WithExtraConfigParams ¶
func WithExtraConfigParams(configMap runner.ConfigMap) ProvisionerOption
WithExtraConfigParams adds extra config parameters to the ConfigMap.
func WithFakeIntakeOptions ¶
func WithFakeIntakeOptions(opts ...fakeintake.Option) ProvisionerOption
WithFakeIntakeOptions adds options to the FakeIntake.
func WithInstanceOptions ¶
func WithInstanceOptions(opts ...compute.VMOption) ProvisionerOption
WithInstanceOptions adds options to the EC2 VM.
func WithName ¶
func WithName(name string) ProvisionerOption
WithName sets the name of the provisioner.
func WithUpdater ¶
func WithUpdater() ProvisionerOption
WithUpdater installs the agent through the updater.
func WithoutAgent ¶
func WithoutAgent() ProvisionerOption
WithoutAgent disables the creation of the Agent.
func WithoutFakeIntake ¶
func WithoutFakeIntake() ProvisionerOption
WithoutFakeIntake disables the creation of the FakeIntake.
type ProvisionerParams ¶
type ProvisionerParams struct {
// contains filtered or unexported fields
}
ProvisionerParams is a set of parameters for the Provisioner.
func GetProvisionerParams ¶
func GetProvisionerParams(opts ...ProvisionerOption) *ProvisionerParams
GetProvisionerParams return ProvisionerParams from options opts setup
type RunParams ¶
type RunParams struct { Environment *gcp.Environment ProvisionerParams *ProvisionerParams }
RunParams is a set of parameters for the Run function.