package
0.0.2-beta.2
Repository: https://github.com/radekg/yugabyte-db-go-client.git
Documentation: pkg.go.dev

# Functions

ApplyMasterConfigDefaults applies default values to the master configuration.
ApplyTServerConfigDefaults applies default values to the master configuration.
CompareStringSlices cpmpares if two string slices have the same length and same values.
Eventually retries the request maximum number of tries and stops on success, or error.
GetEnvOrDefault returns the value of an environment variable or fallback value, if environment variable is undefined or empty.
NewDefaultAllocatedAdditionalPort returns an instance of a default AllocatedAdditionalPort implementation.
NewRandomPortSupplier creates an initialized instance of a random port supplier.
NewTestMetricsCallback creates a new configured instance of test metrics callback.
StringSlicesEqual compares two slices without failing the test.
WaitForContainerExit0 waits for the container to exist with code 0.

# Constants

DefaultMasterPrefix is the default master prefix value, if no prefix specified.
DefaultReplicationFactor specifies the default replication factor.
DefaultYugabyteDBContainerUser specifies the default Docker container user.
DefaultYugabyteDBEnvVarImageName is an environment variable name used to override the default YugabyteDB docker image name.
DefaultYugabyteDBFsDataPath specifies the default path of the data directory in the container.
DefaultYugabyteDBImageVersion specifies the default Docker image version used in tests.
DefaultYugabyteDBMasterImageName specifies the default Docker image name used in tests.
DefaultYugabyteDBMasterRPCPort is the default YugabyteDB RPC port used inside of the container.
DefaultYugabyteDBTServerRPCPort is the default YugabyteDB RPC port used inside of the container.
DefaultYugabyteDBTServerYSQLPort is the default YugabyteDB PostgreSQL port used inside of the container.
DefaultYugabyteDEnvVarImageVersion is an environment variable name used to override the default YugabyteDB docker image tag.

# Structs

TestMasterConfiguration is the master configuration for this test.
TestMetricsCallback is the metrics callback to use in tests.
TestTServerConfiguration is the TServer configuration for this test.

# Interfaces

AllocatedAdditionalPort holds references to allocated ports when other ports are requested.
RandomPortSupplier wraps the functionality for random port handling in tests.

# Type aliases

AllocatedAdditionalPorts is a short hand type storing all allocated additional ports for a single container.
DockerCommand is the YugabyteDB Docker image command.
MasterInternalAddresses is a list of internal masters addresses used to form the cluster.
MultiMasterAllocatedAdditionalPorts is a short hand type storing all allocated additional ports for masters.
RPCBindAddress is the bind address used by the test container.