build

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Inject

func Inject(reg *asm.Registry)

func TestInject

func TestInject(reg *asm.Registry)

Types

type BuildResult

type BuildResult struct {
	Entrypoint string
}

type BuildStack

type BuildStack struct {
	Stack   string
	CodeDir string
	Input   string

	Version     string
	OnBuild     []string
	AlpineImage string
}

type Buildkit

type Buildkit struct {
	Client *client.Client

	Log *slog.Logger
}

func (*Buildkit) BuildImage

func (b *Buildkit) BuildImage(
	ctx context.Context,
	dfs fsutil.FS,
	bs BuildStack,
	getTar func() (io.WriteCloser, error),
	tos ...TransformOptions,
) (*BuildResult, error)

func (*Buildkit) Transform

func (b *Buildkit) Transform(ctx context.Context, dfs fsutil.FS, tos ...TransformOptions) (io.ReadCloser, chan struct{}, error)

type ImageConfig

type ImageConfig struct {
	Services map[string]string
}

type TransformOptions

type TransformOptions func(*transformOpt)

func WithBuildArg

func WithBuildArg(key, val string) TransformOptions

func WithBuildArgs

func WithBuildArgs(args map[string]string) TransformOptions

func WithCacheDir

func WithCacheDir(dir string) TransformOptions

func WithPhaseUpdates

func WithPhaseUpdates(fn func(phase string)) TransformOptions

func WithStatusUpdates

func WithStatusUpdates(fn func(ss *client.SolveStatus, sj []byte)) TransformOptions

Jump to

Keyboard shortcuts

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