buildkit

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package buildkit implements a compiler for turning Blubber configuration into a valid llb.State graph.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

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

Build handles BuildKit client requests for the Blubber gateway.

func Compile

func Compile(cfg *config.Config, variant string) (*bytes.Buffer, error)

Compile takes a parsed config.Config and a configured variant name and returns an llb.State graph as JSON.

func CompileToLLB

func CompileToLLB(
	ctx context.Context,
	ebo *ExtraBuildOptions,
	cfg *config.Config,
	variant string,
	convertOpts d2llb.ConvertOpt,
) (*llb.State, *d2llb.Image, error)

CompileToLLB takes a parsed config.Config and a configured variant name and returns an llb.State graph.

Types

type ExtraBuildOptions added in v0.12.0

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

ExtraBuildOptions stores options to configure the build process. These are not BuildKit options, but additional configuration implemented by the BuildKit frontend

func ParseExtraOptions added in v0.12.0

func ParseExtraOptions(ops map[string]string) (*ExtraBuildOptions, error)

ParseExtraOptions parses and returns a newly created ExtraBuildOption

func (*ExtraBuildOptions) EntrypointArgs added in v0.12.0

func (ebo *ExtraBuildOptions) EntrypointArgs() []string

EntrypointArgs returns ebo.entrypointArgs

func (*ExtraBuildOptions) RunEntrypoint added in v0.12.0

func (ebo *ExtraBuildOptions) RunEntrypoint() bool

RunEntrypoint returns ebo.runEntrypoint

Jump to

Keyboard shortcuts

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