shared

package
v0.40.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultProjectID is the default project ID for the Pubsub container.
	DefaultProjectID = "test-project"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options) error

Option is an option for the GCloud container.

func WithProjectID

func WithProjectID(projectID string) Option

WithProjectID sets the project ID for the GCloud container.

func (Option) Customize

Customize is a NOOP. It's defined to satisfy the testcontainers.ContainerCustomizer interface.

type Options

type Options struct {
	ProjectID string
	URI       string
}

Options represents the options for the different GCloud containers. This type must contain all the options that are common to all the GCloud containers.

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns a new Options instance with the default project ID.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL