gravity

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Password

func Password() string

func Token

func Token() string

Types

type Gravity

type Gravity struct {
	// contains filtered or unexported fields
}

func New

func New(t *testing.T, opts ...GravityOption) *Gravity

func (*Gravity) APIClient

func (g *Gravity) APIClient() *api.APIClient

func (*Gravity) Container

func (g *Gravity) Container() testcontainers.Container

func (*Gravity) EtcdID

func (g *Gravity) EtcdID() string

type GravityOption

type GravityOption func(t *testing.T, req *testcontainers.ContainerRequest)

func WithEnv

func WithEnv(key string, value string) GravityOption

func WithHostname

func WithHostname(name string) GravityOption

func WithoutWait

func WithoutWait() GravityOption

type StdoutLogConsumer

type StdoutLogConsumer struct {
	T      *testing.T
	Prefix string
}

StdoutLogConsumer is a LogConsumer that prints the log to stdout

func (*StdoutLogConsumer) Accept

func (lc *StdoutLogConsumer) Accept(l testcontainers.Log)

Accept prints the log to stdout

Jump to

Keyboard shortcuts

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