Documentation
¶
Index ¶
Constants ¶
This section is empty.
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)
}
type TestResource ¶
type TestResource interface {
DependancyRes
DependancyConn
}
Click to show internal directories.
Click to hide internal directories.