frontend

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, client gwclient.Client) (*gwclient.Result, error)

Build is the main entrypoint for the dalec frontend.

func ForwarderFromClient

func ForwarderFromClient(ctx context.Context, client gwclient.Client) dalec.ForwarderFunc

ForwarderFromClient creates a dalec.ForwarderFunc from a gateway client. This is used for forwarding builds to other frontends in dalec.Source2LLBGetter

func GetBuildArg

func GetBuildArg(client gwclient.Client, k string) (string, bool)

func RegisterHandler

func RegisterHandler(group string, t bktargets.Target, build BuildFunc)

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 SourceOptFromClient(ctx context.Context, c gwclient.Client) (dalec.SourceOpts, error)

func SupportsDiffMerge

func SupportsDiffMerge(client gwclient.Client) bool

SupportsDiffMerge checks if the given client supports the diff and merge operations.

Types

type BuildFunc

type BuildFunc func(ctx context.Context, client gwclient.Client, spec *dalec.Spec) (gwclient.Reference, *image.Image, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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