testutil

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUniqueNestedEngineNetwork added in v0.12.0

func GetUniqueNestedEngineNetwork() (deviceName string, cidr string)

returns a device name and cidr to use; enables us to have unique devices+ip ranges for nested engine services to prevent conflicts

func NewTWriter added in v0.12.0

func NewTWriter(t testing.TB) io.Writer

NewTWriter creates a new TWriter

func Query

func Query(t *testctx.T, query string, res any, opts *QueryOptions, clientOpts ...dagger.ClientOpt) error

func SpanOpts added in v0.16.3

func SpanOpts[T testctx.Runner[T]](w *testctx.W[T]) []trace.SpanStartOption

Types

type QueryOptions

type QueryOptions struct {
	Operation string
	Variables map[string]any
	Secrets   map[string]string
	Version   string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳