containers

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: BSD-3-Clause-LBNL Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	EnterpriseLicenceKey    = "GF_ENTERPRISE_LICENSE_TEXT"
	EnterpriseLicenceKeyEnv = "ENTERPRISE_LICENSE"
	DisableEnterpriseTest   = "ENTERPRISE_DISABLED"
	DefaultCloudUser        = "test"
	DefaultCloudPass        = "secretsss"

	S3UiPort = "9001"
)

Variables

This section is empty.

Functions

func BootstrapCloudStorage

func BootstrapCloudStorage(username, password string) (testcontainers.Container, context.CancelFunc)

BootstrapCloudStorage starts a S3 container for cloud storage testing. It accepts optional username and password; defaults are used if empty. Returns the testcontainers.Container and a cancel function to terminate it.

func DefaultGrafanaEnv

func DefaultGrafanaEnv() map[string]string

func GetGrafanaVersion added in v0.9.1

func GetGrafanaVersion() string

GetGrafanaVersion returns the Grafana version used for tests. It reads GRAFANA_TEST_VERSION env variable; if unset, defaults to "11.1.4-ubuntu".

func SetupGrafanaContainer

func SetupGrafanaContainer(additionalEnvProps map[string]string, version, imageSuffix string) (testcontainers.Container, func())

SetupGrafanaContainer starts a Grafana test container with default env vars, merges additionalEnvProps, retries up to 3 times, and returns the container and a cancel function to terminate it.

func SetupGrafanaLicense

func SetupGrafanaLicense(props *map[string]string) error

SetupGrafanaLicense loads the enterprise license from ENTERPRISE_LICENSE env var, stores it under GF_ENTERPRISE_LICENSE_TEXT in props, and errors if not set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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