Documentation
¶
Index ¶
Constants ¶
View Source
const CmdName = "test-runner"
Variables ¶
This section is empty.
Functions ¶
func WithFinalState ¶ added in v0.21.0
func WithFinalState(st llb.State, opts ...ValidationOpt) llb.StateOption
WithFinalState returns a state option which takes as input a potentially modified state and returns the original unmodified state. This makes sure that any changes made during test steps are discarded but makes sure there is a dependency on the intermediate state so buildkit will execute it.
NOTE: This is a hack to work around the fact that buildkit does not currently have a proper way to express "run this for validation only".
func WithTests ¶ added in v0.21.0
func WithTests(target string, sOpt dalec.SourceOpts, deps llb.StateOption, tests []*dalec.TestSpec, opts ...ValidationOpt) llb.StateOption
Types ¶
type ValidationInfo ¶ added in v0.21.0
type ValidationInfo struct {
Frontend *llb.State
Constraints []llb.ConstraintsOpt
ExtraOpts []llb.RunOption
}
func (*ValidationInfo) SetConstraintsOption ¶ added in v0.21.0
func (i *ValidationInfo) SetConstraintsOption(c *llb.Constraints)
func (*ValidationInfo) SetRunOption ¶ added in v0.21.0
func (i *ValidationInfo) SetRunOption(ei *llb.ExecInfo)
type ValidationOpt ¶ added in v0.21.0
type ValidationOpt func(*ValidationInfo)
func ValidateWithMount ¶ added in v0.21.0
func ValidateWithMount(sOpt dalec.SourceOpts, mnt dalec.SourceMount, opts ...llb.ConstraintsOpt) ValidationOpt
func WithConstraints ¶ added in v0.21.0
func WithConstraints(opts ...llb.ConstraintsOpt) ValidationOpt
Click to show internal directories.
Click to hide internal directories.