Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultProjectID is the default project ID for the BigQuery container.
DefaultProjectID = "test-project"
)
Variables ¶
View Source
var WithProjectID = shared.WithProjectID
WithProjectID re-exports the common GCloud WithProjectID option
Functions ¶
func WithDataYAML ¶
func WithDataYAML(r io.Reader) testcontainers.CustomizeRequestOption
WithDataYAML seeds the BigQuery project for the GCloud container with an io.Reader representing the data yaml file, which is used to copy the file to the container, and then processed to seed the BigQuery project.
Other GCloud containers will ignore this option.
Types ¶
type Container ¶
type Container struct {
testcontainers.Container
// contains filtered or unexported fields
}
Container represents the BigQuery container type used in the module
func Run ¶
func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*Container, error)
Run creates an instance of the BigQuery GCloud container type. The URI uses http:// as the protocol.
Click to show internal directories.
Click to hide internal directories.