testdef

package
v1.50.20 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const ContainerFileMode = 0o755

Variables

This section is empty.

Functions

This section is empty.

Types

type DependancyConn

type DependancyConn interface {
	GetDS() frame.DataSource
	GetInternalDS() frame.DataSource
	GetRandomisedDS(ctx context.Context, randomisedPrefix string) (frame.DataSource, func(context.Context), error)
}

type DependancyOption

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

func NewDependancyOption

func NewDependancyOption(name string, prefix string, deps []DependancyConn) *DependancyOption

func (*DependancyOption) Cache

func (opt *DependancyOption) Cache() []DependancyConn

func (*DependancyOption) Database

func (opt *DependancyOption) Database() []DependancyConn

func (*DependancyOption) Name

func (opt *DependancyOption) Name() string

func (*DependancyOption) Prefix

func (opt *DependancyOption) Prefix() string

func (*DependancyOption) Queue

func (opt *DependancyOption) Queue() []DependancyConn

type DependancyRes

type DependancyRes interface {
	Setup(ctx context.Context, network *testcontainers.DockerNetwork) error
	Cleanup(ctx context.Context)
	Container() testcontainers.Container
}

type TestResource

type TestResource interface {
	DependancyRes
	DependancyConn
}

Jump to

Keyboard shortcuts

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