llbutil

package
v0.0.233 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitCredentialsBuildkitSecret string

Functions

func AddFile

func AddFile(base llb.State, path string, m fs.FileMode, content []byte) llb.State

func AddSerializedJsonAsFile

func AddSerializedJsonAsFile(base llb.State, path string, content any) (llb.State, error)

func CopyFrom

func CopyFrom(src llb.State, srcPath, destPath string, copyInfo ...copyOpt) llb.StateOption

func CopyFromExcluding added in v0.0.75

func CopyFromExcluding(src llb.State, srcPath string, destPath string, exclude []string) llb.StateOption
func FollowSymlink() func(ci *llb.CopyInfo)

func Image

func Image(image string, platform specs.Platform) llb.State

func ImageName

func ImageName(image string, platform *specs.Platform) llb.ConstraintsOpt

func OCILayout added in v0.0.138

func OCILayout(digest v1.Hash, opts ...llb.OCILayoutOption) llb.State

func OCILayoutFromImage added in v0.0.165

func OCILayoutFromImage(ctx context.Context, image oci.Image) (llb.State, error)

func Prebuilt added in v0.0.108

func Prebuilt(ctx context.Context, ref string, platform specs.Platform) (llb.State, error)

func PrefixSh

func PrefixSh(prefix string, platform *specs.Platform, command string, args ...interface{}) []llb.RunOption

func Reforge added in v0.0.109

func Reforge(ctx context.Context, fsys fs.FS, base llb.State, target string) (llb.State, error)

Reforge emits a series of File() operations that will produce the same contents as in the provided `fsys`.

Types

type RunGo

type RunGo struct {
	Base       llb.State
	SrcMount   llb.State
	WorkingDir string
	Platform   *specs.Platform
}

func (RunGo) PrepareGoMod

func (r RunGo) PrepareGoMod(ro ...llb.RunOption) llb.ExecState

func (RunGo) With

func (r RunGo) With(ro ...llb.RunOption) llb.ExecState

Jump to

Keyboard shortcuts

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