mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
vendor: update buildkit to master@31c870e82a48
Signed-off-by: Justin Chadwell <me@jedevc.com>
This commit is contained in:
5
vendor/github.com/moby/buildkit/client/llb/exec.go
generated
vendored
5
vendor/github.com/moby/buildkit/client/llb/exec.go
generated
vendored
@ -649,6 +649,7 @@ type SSHInfo struct {
|
||||
Optional bool
|
||||
}
|
||||
|
||||
// AddSecret is a RunOption that adds a secret to the exec.
|
||||
func AddSecret(dest string, opts ...SecretOption) RunOption {
|
||||
return runOptionFunc(func(ei *ExecInfo) {
|
||||
s := &SecretInfo{ID: dest, Target: dest, Mode: 0400}
|
||||
@ -696,6 +697,7 @@ func SecretAsEnv(v bool) SecretOption {
|
||||
})
|
||||
}
|
||||
|
||||
// SecretFileOpt sets the secret's target file uid, gid and permissions.
|
||||
func SecretFileOpt(uid, gid, mode int) SecretOption {
|
||||
return secretOptionFunc(func(si *SecretInfo) {
|
||||
si.UID = uid
|
||||
@ -704,12 +706,15 @@ func SecretFileOpt(uid, gid, mode int) SecretOption {
|
||||
})
|
||||
}
|
||||
|
||||
// ReadonlyRootFS sets the execs's root filesystem to be read-only.
|
||||
func ReadonlyRootFS() RunOption {
|
||||
return runOptionFunc(func(ei *ExecInfo) {
|
||||
ei.ReadonlyRootFS = true
|
||||
})
|
||||
}
|
||||
|
||||
// WithProxy is a RunOption that sets the proxy environment variables in the resulting exec.
|
||||
// For example `HTTP_PROXY` is a standard environment variable for unix systems that programs may read.
|
||||
func WithProxy(ps ProxyEnv) RunOption {
|
||||
return runOptionFunc(func(ei *ExecInfo) {
|
||||
ei.ProxyEnv = &ps
|
||||
|
Reference in New Issue
Block a user