Documentation
¶
Index ¶
- Constants
- func InitTestMain(args *Args, applyPersistent ApplyPersistentFunc) (*log.Logger, context.Context)
- func NoopCleanup()
- func RandomHex(length uint8) (string, error)
- type ApplyPersistent
- type ApplyPersistentFunc
- type Args
- type Cleanup
- type CloudFunctionsGen2Cmd
- type CloudRunCmd
- type CloudRunCollectorCmd
- type CmdWithImage
- type CmdWithProjectId
- type GaeCmd
- type GaeStandardCmd
- type GceCmd
- type GceCollectorArmCmd
- type GceCollectorCmd
- type GkeCmd
- type GkeCollectorCmd
- type GkeOperatorCollectorCmd
- type LocalCmd
- type SetupCollectorFunc
- type SetupFunc
Constants ¶
View Source
const BeginOutputArt = `` /* 908-byte string literal not displayed */
View Source
const EndOutputArt = `` /* 908-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func InitTestMain ¶
func NoopCleanup ¶
func NoopCleanup()
Types ¶
type ApplyPersistent ¶
type ApplyPersistent struct {
AutoApprove bool `arg:"--auto-approve" default:"false" help:"Approve without prompting. Default is false."`
}
type ApplyPersistentFunc ¶
type Args ¶
type Args struct {
// This subcommand is a special case, it doesn't run any tests. It just
// applies the persistent resources which are used across tests. See
// tf/persistent/README.md for details on what is in there.
ApplyPersistent *ApplyPersistent `arg:"subcommand:apply-persistent" help:"Terraform apply the resources in tf/persistent and exit (does not run tests)."`
Local *LocalCmd `arg:"subcommand:local" help:"Deploy the test server locally with docker and execute tests"`
Gke *GkeCmd `arg:"subcommand:gke" help:"Deploy the test server on GKE and execute tests"`
Gce *GceCmd `arg:"subcommand:gce" help:"Deploy the test server on GCE and execute tests"`
GceCollector *GceCollectorCmd `arg:"subcommand:gce-collector" help:"Deploy the collector on GCE and execute tests"`
GceCollectorArm *GceCollectorArmCmd `arg:"subcommand:gce-collector-arm" help:"Deploy the collector on GCE and execute tests"`
GkeCollector *GkeCollectorCmd `arg:"subcommand:gke-collector" help:"Deploy the collector on GKE and execute tests"`
GkeOperatorCollector *GkeOperatorCollectorCmd `arg:"subcommand:gke-operator-collector" help:"Deploy the collector on GKE using the OpenTelemetry Operator and execute tests"`
Gae *GaeCmd `arg:"subcommand:gae" help:"Deploy the test server on GAE and execute tests"`
GaeStandard *GaeStandardCmd `arg:"subcommand:gae-standard" help:"Deploy the test server on GAE standard and execute tests"`
CloudRun *CloudRunCmd `arg:"subcommand:cloud-run" help:"Deploy the test server on Cloud Run and execute tests"`
CloudRunCollector *CloudRunCollectorCmd `arg:"subcommand:cloud-run-collector" help:"Deploy the collector on Cloud Run and execute tests"`
CloudFunctionsGen2 *CloudFunctionsGen2Cmd `arg:"subcommand:cloud-functions-gen2" help:"Deploy the test server on Cloud Function (2nd Gen) and execute tests"`
CmdWithProjectId
GoTestFlags string `help:"go test flags to pass through, e.g. --gotestflags='-test.v'"`
HealthCheckTimeout time.Duration `` /* 127-byte string literal not displayed */
// This is used in a new terraform workspace's name and in the GCP resources
// we create. Pass the GCB build ID in CI to get the build id formatted into
// resources created for debugging. If not provided, we generate a hex
// string.
TestRunID string `arg:"--test-run-id,env:TEST_RUN_ID" help:"Optional test run id to use to partition terraform resources"`
}
type CloudFunctionsGen2Cmd ¶
type CloudFunctionsGen2Cmd struct {
// Needed to configure which language will the function instance support
Runtime string `arg:"required" help:"Configure the language runtime environment for CloudFunction"`
EntryPoint string `arg:"required" help:"The entry point for the code that will run in this CloudFunction"`
FunctionSource string `arg:"required" help:"The full path of the zip file that contains the code source that needs to run within the CloudFunction"`
}
type CloudRunCmd ¶
type CloudRunCmd struct {
CmdWithImage
}
type CloudRunCollectorCmd ¶
type CloudRunCollectorCmd struct {
CmdWithImage
}
type CmdWithImage ¶
type CmdWithImage struct {
Image string `arg:"required" help:"docker container image to deploy and test"`
}
type CmdWithProjectId ¶
type CmdWithProjectId struct {
ProjectID string `arg:"required,--project-id,env:PROJECT_ID" help:"GCP project id/name"`
}
type GaeCmd ¶
type GaeCmd struct {
CmdWithImage
Runtime string `arg:"required" help:"The language runtime for the instrumented test server, used in naming the service"`
}
type GaeStandardCmd ¶
type GaeStandardCmd struct {
Runtime string `arg:"required" help:"The language runtime for the instrumented test server, used in naming the service"`
AppSource string `arg:"required" help:"The full path of the zip file that contains the source code to run in GAE"`
Entrypoint string `` /* 152-byte string literal not displayed */
}
type GceCmd ¶
type GceCmd struct {
CmdWithImage
}
type GceCollectorArmCmd ¶
type GceCollectorArmCmd struct {
CmdWithImage
}
type GceCollectorCmd ¶
type GceCollectorCmd struct {
CmdWithImage
}
type GkeCmd ¶
type GkeCmd struct {
CmdWithImage
}
type GkeCollectorCmd ¶
type GkeCollectorCmd struct {
CmdWithImage
}
type GkeOperatorCollectorCmd ¶
type GkeOperatorCollectorCmd struct {
CmdWithImage
}
type LocalCmd ¶
type LocalCmd struct {
CmdWithImage
Port string `default:"8000"`
// Needed when running without a metadata server for credentials
GoogleApplicationCredentials string `` /* 152-byte string literal not displayed */
// May be needed when running this binary in a container
Network string `help:"Docker network to use when starting the container, optional"`
ContainerUser string `arg:"--container-user" help:"Optional user to use when running the container"`
}
type SetupCollectorFunc ¶
Click to show internal directories.
Click to hide internal directories.