llbutil

package
v0.0.74 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: Apache-2.0 Imports: 9 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 CopyPatterns

func CopyPatterns(src llb.State, include []string, exclude []string, destPath string) llb.StateOption

func CopyWildcard

func CopyWildcard(src llb.State, wildcard string, exclude []string, destPath 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 PrefixSh

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

func WriteFS

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

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