testenv

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildxEnv

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

func New

func New() *BuildxEnv

func (*BuildxEnv) Buildkit

func (b *BuildxEnv) Buildkit(ctx context.Context) (*client.Client, error)

func (*BuildxEnv) Load

func (b *BuildxEnv) Load(ctx context.Context, id string, f gwclient.BuildFunc) error

Load loads the output of the specified gwclient.BuildFunc into the buildkit instance.

func (*BuildxEnv) RunTest

func (b *BuildxEnv) RunTest(ctx context.Context, t *testing.T, f TestFunc, opts ...TestRunnerOpt)

func (*BuildxEnv) WithBuilder

func (b *BuildxEnv) WithBuilder(builder string) *BuildxEnv

type FrontendSpec

type FrontendSpec struct {
	ID    string
	Build gwclient.BuildFunc
}

type SolveStatus added in v0.7.0

type SolveStatus = client.SolveStatus

SolveStatus is convenience wrapper for client.SolveStatus to help disambiguate imports of the client package.

type TestFunc added in v0.6.1

type TestFunc func(context.Context, gwclient.Client)

type TestRunnerConfig added in v0.7.0

type TestRunnerConfig struct {
	// SolveStatusFn replaces the builtin status logger with a custom implementation.
	// This is useful particularly if you need to inspect the solve statuses.
	SolveStatusFn func(*client.SolveStatus)
}

type TestRunnerOpt added in v0.7.0

type TestRunnerOpt func(*TestRunnerConfig)

func WithSolveStatusFn added in v0.7.0

func WithSolveStatusFn(f func(*SolveStatus)) TestRunnerOpt

Jump to

Keyboard shortcuts

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