Documentation ¶
Index ¶
- Variables
- func Abs(ctx context.Context, s llb.State, p string) (string, error)
- func CopyOp(srcState llb.State, srcs []string, destState llb.State, dest string, ...) llb.State
- func DefaultPlatform() specs.Platform
- func DockerTagSafe(tag string) string
- func NewSecretProvider(client secretsclient.Client, overrides map[string][]byte) session.Attachable
- func PlatformToString(p *specs.Platform) string
- func PlatformWithDefault(p *specs.Platform) specs.Platform
- func ResolvePlatform(p1 *specs.Platform, p2 *specs.Platform) (*specs.Platform, error)
- func ScratchWithPlatform() llb.State
- func StateToRef(ctx context.Context, gwClient gwclient.Client, state llb.State, ...) (gwclient.Reference, error)
- func WithDependency(state llb.State, depState llb.State, stateStr, depStr string, ...) llb.State
Constants ¶
This section is empty.
Variables ¶
var (
// DefaultPathEnv is the default PATH to use.
DefaultPathEnv = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
)
var ErrNoSecretsClient = fmt.Errorf("no secrets client provided")
ErrNoSecretsClient occurs when the secrets client is referenced but was never provided
Functions ¶
func CopyOp ¶
func CopyOp(srcState llb.State, srcs []string, destState llb.State, dest string, allowWildcard bool, isDir bool, keepTs bool, chown string, opts ...llb.ConstraintsOpt) llb.State
CopyOp is a simplified llb copy operation.
func DefaultPlatform ¶ added in v0.4.2
DefaultPlatform returns the default platform to use if none is specified.
func DockerTagSafe ¶ added in v0.4.3
DockerTagSafe turns a string into a safe Docker tag.
func NewSecretProvider ¶ added in v0.3.10
func NewSecretProvider(client secretsclient.Client, overrides map[string][]byte) session.Attachable
NewSecretProvider returns a new secrets provider
func PlatformToString ¶ added in v0.4.2
PlatformToString turns a platform pointer into a string representation.
func PlatformWithDefault ¶ added in v0.4.3
PlatformWithDefault returns the same platform provided if not nil, or the default platform otherwise.
func ResolvePlatform ¶ added in v0.4.3
ResolvePlatform returns the non-nil platform provided. If both are nil, nil is returned. If both are non-nil, they are compared to ensure they are identical. If they are not, an error is returned.
func ScratchWithPlatform ¶ added in v0.4.2
ScratchWithPlatform is the scratch state with the default platform readily set.
Types ¶
This section is empty.