Documentation ¶
Index ¶
- func Build(ctx context.Context, client gwclient.Client) (*gwclient.Result, error)
- func ForwarderFromClient(ctx context.Context, client gwclient.Client) dalec.ForwarderFunc
- func GetBuildArg(client gwclient.Client, k string) (string, bool)
- func RegisterHandler(group string, t bktargets.Target, build BuildFunc)
- func RunTests(ctx context.Context, client gwclient.Client, spec *dalec.Spec, ...) error
- func SetDefault(group, name string)
- func SourceOptFromClient(ctx context.Context, c gwclient.Client) (dalec.SourceOpts, error)
- func SupportsDiffMerge(client gwclient.Client) bool
- type BuildFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwarderFromClient ¶
ForwarderFromClient creates a dalec.ForwarderFunc from a gateway client. This is used for forwarding builds to other frontends in dalec.Source2LLBGetter
func RegisterHandler ¶
RegisterHandler registers a target. The default target is determined by the order in which handlers are registered. The first handler which has Default=true is the default handler. This can be changed by calling SetDefault.
Registered handlers may be overridden by dalec.Spec.Targets.
func RunTests ¶
func RunTests(ctx context.Context, client gwclient.Client, spec *dalec.Spec, ref gwclient.Reference, target string) error
Run tests runs the tests defined in the spec against the given target container.
func SetDefault ¶
func SetDefault(group, name string)
SetDefault sets the default handler for when no handler is specified.
func SourceOptFromClient ¶
func SupportsDiffMerge ¶
SupportsDiffMerge checks if the given client supports the diff and merge operations.