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 Compile ¶
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 ¶
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 ¶
func ParseExtraOptions(ops map[string]string) (*ExtraBuildOptions, error)
ParseExtraOptions parses and returns a newly created ExtraBuildOption
func (*ExtraBuildOptions) EntrypointArgs ¶
func (ebo *ExtraBuildOptions) EntrypointArgs() []string
EntrypointArgs returns ebo.entrypointArgs
func (*ExtraBuildOptions) RunEntrypoint ¶
func (ebo *ExtraBuildOptions) RunEntrypoint() bool
RunEntrypoint returns ebo.runEntrypoint
Click to show internal directories.
Click to hide internal directories.