Documentation ¶
Index ¶
- Variables
- func Abs(ctx context.Context, s pllb.State, p string) (string, error)
- func CopyOp(ctx context.Context, srcState pllb.State, srcs []string, destState pllb.State, ...) (pllb.State, error)
- func CopyWithRunOptions(srcState pllb.State, src, dest string, platr *platutil.Resolver, ...) pllb.State
- func DockerTagSafe(tag string) string
- func PlatformSpecificImageName(imgName string, platform platutil.Platform) (string, error)
- func StateToRef(ctx context.Context, gwClient gwclient.Client, state pllb.State, noCache bool, ...) (gwclient.Reference, error)
- func WithDependency(state pllb.State, depState pllb.State, stateStr, depStr string, ...) pllb.State
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// DefaultPathEnv is the default PATH to use.
DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
)
Functions ¶
func CopyOp ¶
func CopyOp(ctx context.Context, srcState pllb.State, srcs []string, destState pllb.State, dest string, allowWildcard bool, isDir bool, keepTs bool, chown string, chmod *fs.FileMode, ifExists, symlinkNoFollow, merge bool, opts ...llb.ConstraintsOpt) (pllb.State, error)
CopyOp is a simplified llb copy operation.
func CopyWithRunOptions ¶
func CopyWithRunOptions(srcState pllb.State, src, dest string, platr *platutil.Resolver, opts ...llb.RunOption) pllb.State
CopyWithRunOptions copies from `src` to `dest` and returns the result in a separate LLB State. This operation is similar llb.Copy, however, it can apply llb.RunOptions (such as a mount) Internally, the operation runs on the internal COPY image used by Dockerfile.
func DockerTagSafe ¶
DockerTagSafe turns a string into a safe Docker tag.
func PlatformSpecificImageName ¶
PlatformSpecificImageName returns the PlatformSpecificImageName
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package pllb is a wrapper around llb, which makes it compatible with concurrent code.
|
Package pllb is a wrapper around llb, which makes it compatible with concurrent code. |
Click to show internal directories.
Click to hide internal directories.