Documentation ¶
Overview ¶
Package pb is a generated protocol buffer package.
Package pb provides the protobuf definition of LLB: low-level builder instruction. LLB is DAG-structured; Op represents a vertex, and Definition represents a graph.
It is generated from these files:
ops.proto
It has these top-level messages:
Op Platform Input ExecOp Meta Mount CacheOpt SecretOpt CopyOp CopySource SourceOp BuildOp BuildInput OpMetadata ExportCache ProxyEnv WorkerConstraints Definition HostIP
Index ¶
- Constants
- Variables
- func ToSpecPlatforms(p []Platform) []specs.Platform
- type BuildInput
- func (*BuildInput) Descriptor() ([]byte, []int)
- func (m *BuildInput) Marshal() (dAtA []byte, err error)
- func (m *BuildInput) MarshalTo(dAtA []byte) (int, error)
- func (*BuildInput) ProtoMessage()
- func (m *BuildInput) Reset()
- func (m *BuildInput) Size() (n int)
- func (m *BuildInput) String() string
- func (m *BuildInput) Unmarshal(dAtA []byte) error
- type BuildOp
- func (*BuildOp) Descriptor() ([]byte, []int)
- func (m *BuildOp) GetAttrs() map[string]string
- func (m *BuildOp) GetDef() *Definition
- func (m *BuildOp) GetInputs() map[string]*BuildInput
- func (m *BuildOp) Marshal() (dAtA []byte, err error)
- func (m *BuildOp) MarshalTo(dAtA []byte) (int, error)
- func (*BuildOp) ProtoMessage()
- func (m *BuildOp) Reset()
- func (m *BuildOp) Size() (n int)
- func (m *BuildOp) String() string
- func (m *BuildOp) Unmarshal(dAtA []byte) error
- type CacheOpt
- func (*CacheOpt) Descriptor() ([]byte, []int)
- func (m *CacheOpt) GetID() string
- func (m *CacheOpt) GetSharing() CacheSharingOpt
- func (m *CacheOpt) Marshal() (dAtA []byte, err error)
- func (m *CacheOpt) MarshalTo(dAtA []byte) (int, error)
- func (*CacheOpt) ProtoMessage()
- func (m *CacheOpt) Reset()
- func (m *CacheOpt) Size() (n int)
- func (m *CacheOpt) String() string
- func (m *CacheOpt) Unmarshal(dAtA []byte) error
- type CacheSharingOpt
- type CopyOp
- func (*CopyOp) Descriptor() ([]byte, []int)
- func (m *CopyOp) GetDest() string
- func (m *CopyOp) GetSrc() []*CopySource
- func (m *CopyOp) Marshal() (dAtA []byte, err error)
- func (m *CopyOp) MarshalTo(dAtA []byte) (int, error)
- func (*CopyOp) ProtoMessage()
- func (m *CopyOp) Reset()
- func (m *CopyOp) Size() (n int)
- func (m *CopyOp) String() string
- func (m *CopyOp) Unmarshal(dAtA []byte) error
- type CopySource
- func (*CopySource) Descriptor() ([]byte, []int)
- func (m *CopySource) GetSelector() string
- func (m *CopySource) Marshal() (dAtA []byte, err error)
- func (m *CopySource) MarshalTo(dAtA []byte) (int, error)
- func (*CopySource) ProtoMessage()
- func (m *CopySource) Reset()
- func (m *CopySource) Size() (n int)
- func (m *CopySource) String() string
- func (m *CopySource) Unmarshal(dAtA []byte) error
- type Definition
- func (*Definition) Descriptor() ([]byte, []int)
- func (m *Definition) GetDef() [][]byte
- func (m *Definition) GetMetadata() map[github_com_opencontainers_go_digest.Digest]OpMetadata
- func (m *Definition) Marshal() (dAtA []byte, err error)
- func (m *Definition) MarshalTo(dAtA []byte) (int, error)
- func (*Definition) ProtoMessage()
- func (m *Definition) Reset()
- func (m *Definition) Size() (n int)
- func (m *Definition) String() string
- func (m *Definition) Unmarshal(dAtA []byte) error
- type ExecOp
- func (*ExecOp) Descriptor() ([]byte, []int)
- func (m *ExecOp) GetMeta() *Meta
- func (m *ExecOp) GetMounts() []*Mount
- func (m *ExecOp) GetNetwork() NetMode
- func (m *ExecOp) Marshal() (dAtA []byte, err error)
- func (m *ExecOp) MarshalTo(dAtA []byte) (int, error)
- func (*ExecOp) ProtoMessage()
- func (m *ExecOp) Reset()
- func (m *ExecOp) Size() (n int)
- func (m *ExecOp) String() string
- func (m *ExecOp) Unmarshal(dAtA []byte) error
- type ExportCache
- func (*ExportCache) Descriptor() ([]byte, []int)
- func (m *ExportCache) GetValue() bool
- func (m *ExportCache) Marshal() (dAtA []byte, err error)
- func (m *ExportCache) MarshalTo(dAtA []byte) (int, error)
- func (*ExportCache) ProtoMessage()
- func (m *ExportCache) Reset()
- func (m *ExportCache) Size() (n int)
- func (m *ExportCache) String() string
- func (m *ExportCache) Unmarshal(dAtA []byte) error
- type HostIP
- func (*HostIP) Descriptor() ([]byte, []int)
- func (m *HostIP) GetHost() string
- func (m *HostIP) GetIP() string
- func (m *HostIP) Marshal() (dAtA []byte, err error)
- func (m *HostIP) MarshalTo(dAtA []byte) (int, error)
- func (*HostIP) ProtoMessage()
- func (m *HostIP) Reset()
- func (m *HostIP) Size() (n int)
- func (m *HostIP) String() string
- func (m *HostIP) Unmarshal(dAtA []byte) error
- type Input
- func (*Input) Descriptor() ([]byte, []int)
- func (m *Input) Marshal() (dAtA []byte, err error)
- func (m *Input) MarshalTo(dAtA []byte) (int, error)
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) Size() (n int)
- func (m *Input) String() string
- func (m *Input) Unmarshal(dAtA []byte) error
- type InputIndex
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)
- func (m *Meta) GetArgs() []string
- func (m *Meta) GetCwd() string
- func (m *Meta) GetEnv() []string
- func (m *Meta) GetExtraHosts() []*HostIP
- func (m *Meta) GetProxyEnv() *ProxyEnv
- func (m *Meta) GetUser() string
- func (m *Meta) Marshal() (dAtA []byte, err error)
- func (m *Meta) MarshalTo(dAtA []byte) (int, error)
- func (*Meta) ProtoMessage()
- func (m *Meta) Reset()
- func (m *Meta) Size() (n int)
- func (m *Meta) String() string
- func (m *Meta) Unmarshal(dAtA []byte) error
- type Mount
- func (*Mount) Descriptor() ([]byte, []int)
- func (m *Mount) GetCacheOpt() *CacheOpt
- func (m *Mount) GetDest() string
- func (m *Mount) GetMountType() MountType
- func (m *Mount) GetReadonly() bool
- func (m *Mount) GetSecretOpt() *SecretOpt
- func (m *Mount) GetSelector() string
- func (m *Mount) Marshal() (dAtA []byte, err error)
- func (m *Mount) MarshalTo(dAtA []byte) (int, error)
- func (*Mount) ProtoMessage()
- func (m *Mount) Reset()
- func (m *Mount) Size() (n int)
- func (m *Mount) String() string
- func (m *Mount) Unmarshal(dAtA []byte) error
- type MountType
- type NetMode
- type Op
- func (*Op) Descriptor() ([]byte, []int)
- func (m *Op) GetBuild() *BuildOp
- func (m *Op) GetConstraints() *WorkerConstraints
- func (m *Op) GetCopy() *CopyOp
- func (m *Op) GetExec() *ExecOp
- func (m *Op) GetInputs() []*Input
- func (m *Op) GetOp() isOp_Op
- func (m *Op) GetPlatform() *Platform
- func (m *Op) GetSource() *SourceOp
- func (m *Op) Marshal() (dAtA []byte, err error)
- func (m *Op) MarshalTo(dAtA []byte) (int, error)
- func (*Op) ProtoMessage()
- func (m *Op) Reset()
- func (m *Op) Size() (n int)
- func (m *Op) String() string
- func (m *Op) Unmarshal(dAtA []byte) error
- func (*Op) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type OpMetadata
- func (*OpMetadata) Descriptor() ([]byte, []int)
- func (m *OpMetadata) GetCaps() map[github_com_moby_buildkit_util_apicaps.CapID]bool
- func (m *OpMetadata) GetDescription() map[string]string
- func (m *OpMetadata) GetExportCache() *ExportCache
- func (m *OpMetadata) GetIgnoreCache() bool
- func (m *OpMetadata) Marshal() (dAtA []byte, err error)
- func (m *OpMetadata) MarshalTo(dAtA []byte) (int, error)
- func (*OpMetadata) ProtoMessage()
- func (m *OpMetadata) Reset()
- func (m *OpMetadata) Size() (n int)
- func (m *OpMetadata) String() string
- func (m *OpMetadata) Unmarshal(dAtA []byte) error
- type Op_Build
- type Op_Copy
- type Op_Exec
- type Op_Source
- type OutputIndex
- type Platform
- func (*Platform) Descriptor() ([]byte, []int)
- func (m *Platform) GetArchitecture() string
- func (m *Platform) GetOS() string
- func (m *Platform) GetOSFeatures() []string
- func (m *Platform) GetOSVersion() string
- func (m *Platform) GetVariant() string
- func (m *Platform) Marshal() (dAtA []byte, err error)
- func (m *Platform) MarshalTo(dAtA []byte) (int, error)
- func (*Platform) ProtoMessage()
- func (m *Platform) Reset()
- func (m *Platform) Size() (n int)
- func (p *Platform) Spec() specs.Platform
- func (m *Platform) String() string
- func (m *Platform) Unmarshal(dAtA []byte) error
- type ProxyEnv
- func (*ProxyEnv) Descriptor() ([]byte, []int)
- func (m *ProxyEnv) GetFtpProxy() string
- func (m *ProxyEnv) GetHttpProxy() string
- func (m *ProxyEnv) GetHttpsProxy() string
- func (m *ProxyEnv) GetNoProxy() string
- func (m *ProxyEnv) Marshal() (dAtA []byte, err error)
- func (m *ProxyEnv) MarshalTo(dAtA []byte) (int, error)
- func (*ProxyEnv) ProtoMessage()
- func (m *ProxyEnv) Reset()
- func (m *ProxyEnv) Size() (n int)
- func (m *ProxyEnv) String() string
- func (m *ProxyEnv) Unmarshal(dAtA []byte) error
- type SecretOpt
- func (*SecretOpt) Descriptor() ([]byte, []int)
- func (m *SecretOpt) GetGid() uint32
- func (m *SecretOpt) GetID() string
- func (m *SecretOpt) GetMode() uint32
- func (m *SecretOpt) GetOptional() bool
- func (m *SecretOpt) GetUid() uint32
- func (m *SecretOpt) Marshal() (dAtA []byte, err error)
- func (m *SecretOpt) MarshalTo(dAtA []byte) (int, error)
- func (*SecretOpt) ProtoMessage()
- func (m *SecretOpt) Reset()
- func (m *SecretOpt) Size() (n int)
- func (m *SecretOpt) String() string
- func (m *SecretOpt) Unmarshal(dAtA []byte) error
- type SourceOp
- func (*SourceOp) Descriptor() ([]byte, []int)
- func (m *SourceOp) GetAttrs() map[string]string
- func (m *SourceOp) GetIdentifier() string
- func (m *SourceOp) Marshal() (dAtA []byte, err error)
- func (m *SourceOp) MarshalTo(dAtA []byte) (int, error)
- func (*SourceOp) ProtoMessage()
- func (m *SourceOp) Reset()
- func (m *SourceOp) Size() (n int)
- func (m *SourceOp) String() string
- func (m *SourceOp) Unmarshal(dAtA []byte) error
- type WorkerConstraints
- func (*WorkerConstraints) Descriptor() ([]byte, []int)
- func (m *WorkerConstraints) GetFilter() []string
- func (m *WorkerConstraints) Marshal() (dAtA []byte, err error)
- func (m *WorkerConstraints) MarshalTo(dAtA []byte) (int, error)
- func (*WorkerConstraints) ProtoMessage()
- func (m *WorkerConstraints) Reset()
- func (m *WorkerConstraints) Size() (n int)
- func (m *WorkerConstraints) String() string
- func (m *WorkerConstraints) Unmarshal(dAtA []byte) error
Constants ¶
const ( CapSourceImage apicaps.CapID = "source.image" CapSourceImageResolveMode apicaps.CapID = "source.image.resolvemode" CapSourceLocal apicaps.CapID = "source.local" CapSourceLocalUnique apicaps.CapID = "source.local.unique" CapSourceLocalSessionID apicaps.CapID = "source.local.sessionid" CapSourceLocalIncludePatterns apicaps.CapID = "source.local.includepatterns" CapSourceLocalFollowPaths apicaps.CapID = "source.local.followpaths" CapSourceLocalExcludePatterns apicaps.CapID = "source.local.excludepatterns" CapSourceGit apicaps.CapID = "source.git" CapSourceGitKeepDir apicaps.CapID = "source.git.keepgitdir" CapSourceGitFullURL apicaps.CapID = "source.git.fullurl" CapSourceHTTP apicaps.CapID = "source.http" CapSourceHTTPChecksum apicaps.CapID = "source.http.checksum" CapSourceHTTPPerm apicaps.CapID = "source.http.perm" CapSourceHTTPUIDGID apicaps.CapID = "soruce.http.uidgid" CapBuildOpLLBFileName apicaps.CapID = "source.buildop.llbfilename" CapExecMetaBase apicaps.CapID = "exec.meta.base" CapExecMetaProxy apicaps.CapID = "exec.meta.proxyenv" CapExecMetaNetwork apicaps.CapID = "exec.meta.network" CapExecMountBind apicaps.CapID = "exec.mount.bind" CapExecMountCache apicaps.CapID = "exec.mount.cache" CapExecMountCacheSharing apicaps.CapID = "exec.mount.cache.sharing" CapExecMountSelector apicaps.CapID = "exec.mount.selector" CapExecMountTmpfs apicaps.CapID = "exec.mount.tmpfs" CapMountSecret apicaps.CapID = "exec.mount.secret" CapConstraints apicaps.CapID = "constraints" CapPlatform apicaps.CapID = "platform" CapMetaIgnoreCache apicaps.CapID = "meta.ignorecache" CapMetaDescription apicaps.CapID = "meta.description" CapMetaExportCache apicaps.CapID = "meta.exportcache" )
const AttrExcludePatterns = "local.excludepatterns"
const AttrFollowPaths = "local.followpaths"
const AttrFullRemoteURL = "git.fullurl"
const AttrHTTPChecksum = "http.checksum"
const AttrHTTPFilename = "http.filename"
const AttrHTTPGID = "http.gid"
const AttrHTTPPerm = "http.perm"
const AttrHTTPUID = "http.uid"
const AttrImageRecordType = "image.recordtype"
const AttrImageResolveMode = "image.resolvemode"
const AttrImageResolveModeDefault = "default"
const AttrImageResolveModeForcePull = "pull"
const AttrImageResolveModePreferLocal = "local"
const AttrIncludePatterns = "local.includepattern"
const AttrKeepGitDir = "git.keepgitdir"
const AttrLLBDefinitionFilename = "llbbuild.filename"
const AttrLocalSessionID = "local.session"
const AttrLocalUniqueID = "local.unique"
const LLBDefaultDefinitionFile = LLBDefinitionInput
const LLBDefinitionInput = "buildkit.llb.definition"
const RootMount = "/"
Variables ¶
var ( ErrInvalidLengthOps = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOps = fmt.Errorf("proto: integer overflow") )
var CacheSharingOpt_name = map[int32]string{
0: "SHARED",
1: "PRIVATE",
2: "LOCKED",
}
var CacheSharingOpt_value = map[string]int32{
"SHARED": 0,
"PRIVATE": 1,
"LOCKED": 2,
}
var Caps apicaps.CapList
var MountType_name = map[int32]string{
0: "BIND",
1: "SECRET",
2: "SSH",
3: "CACHE",
4: "TMPFS",
}
var MountType_value = map[string]int32{
"BIND": 0,
"SECRET": 1,
"SSH": 2,
"CACHE": 3,
"TMPFS": 4,
}
var NetMode_name = map[int32]string{
0: "UNSET",
1: "HOST",
2: "NONE",
}
var NetMode_value = map[string]int32{
"UNSET": 0,
"HOST": 1,
"NONE": 2,
}
Functions ¶
func ToSpecPlatforms ¶
Types ¶
type BuildInput ¶
type BuildInput struct {
Input InputIndex `protobuf:"varint,1,opt,name=input,proto3,customtype=InputIndex" json:"input"`
}
BuildInput is used for BuildOp.
func (*BuildInput) Descriptor ¶
func (*BuildInput) Descriptor() ([]byte, []int)
func (*BuildInput) Marshal ¶
func (m *BuildInput) Marshal() (dAtA []byte, err error)
func (*BuildInput) ProtoMessage ¶
func (*BuildInput) ProtoMessage()
func (*BuildInput) Reset ¶
func (m *BuildInput) Reset()
func (*BuildInput) Size ¶
func (m *BuildInput) Size() (n int)
func (*BuildInput) String ¶
func (m *BuildInput) String() string
func (*BuildInput) Unmarshal ¶
func (m *BuildInput) Unmarshal(dAtA []byte) error
type BuildOp ¶
type BuildOp struct { Builder InputIndex `protobuf:"varint,1,opt,name=builder,proto3,customtype=InputIndex" json:"builder"` Inputs map[string]*BuildInput `` /* 139-byte string literal not displayed */ Def *Definition `protobuf:"bytes,3,opt,name=def" json:"def,omitempty"` Attrs map[string]string `` /* 144-byte string literal not displayed */ }
BuildOp is used for nested build invocation. BuildOp is experimental and can break without backwards compatibility
func (*BuildOp) Descriptor ¶
func (*BuildOp) GetDef ¶
func (m *BuildOp) GetDef() *Definition
func (*BuildOp) GetInputs ¶
func (m *BuildOp) GetInputs() map[string]*BuildInput
func (*BuildOp) ProtoMessage ¶
func (*BuildOp) ProtoMessage()
type CacheOpt ¶
type CacheOpt struct { // ID is an optional namespace for the mount ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // Sharing is the sharing mode for the mount Sharing CacheSharingOpt `protobuf:"varint,2,opt,name=sharing,proto3,enum=pb.CacheSharingOpt" json:"sharing,omitempty"` }
CacheOpt defines options specific to cache mounts
func (*CacheOpt) Descriptor ¶
func (*CacheOpt) GetSharing ¶
func (m *CacheOpt) GetSharing() CacheSharingOpt
func (*CacheOpt) ProtoMessage ¶
func (*CacheOpt) ProtoMessage()
type CacheSharingOpt ¶
type CacheSharingOpt int32
CacheSharingOpt defines different sharing modes for cache mount
const ( // SHARED cache mount can be used concurrently by multiple writers CacheSharingOpt_SHARED CacheSharingOpt = 0 // PRIVATE creates a new mount if there are multiple writers CacheSharingOpt_PRIVATE CacheSharingOpt = 1 // LOCKED pauses second writer until first one releases the mount CacheSharingOpt_LOCKED CacheSharingOpt = 2 )
func (CacheSharingOpt) EnumDescriptor ¶
func (CacheSharingOpt) EnumDescriptor() ([]byte, []int)
func (CacheSharingOpt) String ¶
func (x CacheSharingOpt) String() string
type CopyOp ¶
type CopyOp struct { Src []*CopySource `protobuf:"bytes,1,rep,name=src" json:"src,omitempty"` Dest string `protobuf:"bytes,2,opt,name=dest,proto3" json:"dest,omitempty"` }
CopyOp copies files across Ops.
func (*CopyOp) Descriptor ¶
func (*CopyOp) GetSrc ¶
func (m *CopyOp) GetSrc() []*CopySource
func (*CopyOp) ProtoMessage ¶
func (*CopyOp) ProtoMessage()
type CopySource ¶
type CopySource struct { Input InputIndex `protobuf:"varint,1,opt,name=input,proto3,customtype=InputIndex" json:"input"` Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"` }
CopySource specifies a source for CopyOp.
func (*CopySource) Descriptor ¶
func (*CopySource) Descriptor() ([]byte, []int)
func (*CopySource) GetSelector ¶
func (m *CopySource) GetSelector() string
func (*CopySource) Marshal ¶
func (m *CopySource) Marshal() (dAtA []byte, err error)
func (*CopySource) ProtoMessage ¶
func (*CopySource) ProtoMessage()
func (*CopySource) Reset ¶
func (m *CopySource) Reset()
func (*CopySource) Size ¶
func (m *CopySource) Size() (n int)
func (*CopySource) String ¶
func (m *CopySource) String() string
func (*CopySource) Unmarshal ¶
func (m *CopySource) Unmarshal(dAtA []byte) error
type Definition ¶
type Definition struct { // def is a list of marshaled Op messages Def [][]byte `protobuf:"bytes,1,rep,name=def" json:"def,omitempty"` // metadata contains metadata for the each of the Op messages. // A key must be an LLB op digest string. Currently, empty string is not expected as a key, but it may change in the future. Metadata map[github_com_opencontainers_go_digest.Digest]OpMetadata `` /* 184-byte string literal not displayed */ }
Definition is the LLB definition structure with per-vertex metadata entries
func (*Definition) Descriptor ¶
func (*Definition) Descriptor() ([]byte, []int)
func (*Definition) GetDef ¶
func (m *Definition) GetDef() [][]byte
func (*Definition) GetMetadata ¶
func (m *Definition) GetMetadata() map[github_com_opencontainers_go_digest.Digest]OpMetadata
func (*Definition) Marshal ¶
func (m *Definition) Marshal() (dAtA []byte, err error)
func (*Definition) ProtoMessage ¶
func (*Definition) ProtoMessage()
func (*Definition) Reset ¶
func (m *Definition) Reset()
func (*Definition) Size ¶
func (m *Definition) Size() (n int)
func (*Definition) String ¶
func (m *Definition) String() string
func (*Definition) Unmarshal ¶
func (m *Definition) Unmarshal(dAtA []byte) error
type ExecOp ¶
type ExecOp struct { Meta *Meta `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` Mounts []*Mount `protobuf:"bytes,2,rep,name=mounts" json:"mounts,omitempty"` Network NetMode `protobuf:"varint,3,opt,name=network,proto3,enum=pb.NetMode" json:"network,omitempty"` }
ExecOp executes a command in a container.
func (*ExecOp) Descriptor ¶
func (*ExecOp) GetNetwork ¶
func (*ExecOp) ProtoMessage ¶
func (*ExecOp) ProtoMessage()
type ExportCache ¶
type ExportCache struct {
Value bool `protobuf:"varint,1,opt,name=Value,proto3" json:"Value,omitempty"`
}
func (*ExportCache) Descriptor ¶
func (*ExportCache) Descriptor() ([]byte, []int)
func (*ExportCache) GetValue ¶
func (m *ExportCache) GetValue() bool
func (*ExportCache) Marshal ¶
func (m *ExportCache) Marshal() (dAtA []byte, err error)
func (*ExportCache) ProtoMessage ¶
func (*ExportCache) ProtoMessage()
func (*ExportCache) Reset ¶
func (m *ExportCache) Reset()
func (*ExportCache) Size ¶
func (m *ExportCache) Size() (n int)
func (*ExportCache) String ¶
func (m *ExportCache) String() string
func (*ExportCache) Unmarshal ¶
func (m *ExportCache) Unmarshal(dAtA []byte) error
type HostIP ¶
type HostIP struct { Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"` IP string `protobuf:"bytes,2,opt,name=IP,proto3" json:"IP,omitempty"` }
func (*HostIP) Descriptor ¶
func (*HostIP) ProtoMessage ¶
func (*HostIP) ProtoMessage()
type Input ¶
type Input struct { // digest of the marshaled input Op Digest github_com_opencontainers_go_digest.Digest `protobuf:"bytes,1,opt,name=digest,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"digest"` // output index of the input Op Index OutputIndex `protobuf:"varint,2,opt,name=index,proto3,customtype=OutputIndex" json:"index"` }
Input represents an input edge for an Op.
func (*Input) Descriptor ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
type InputIndex ¶
type InputIndex int64
const Empty InputIndex = -1
const LLBBuilder InputIndex = -1
type Meta ¶
type Meta struct { Args []string `protobuf:"bytes,1,rep,name=args" json:"args,omitempty"` Env []string `protobuf:"bytes,2,rep,name=env" json:"env,omitempty"` Cwd string `protobuf:"bytes,3,opt,name=cwd,proto3" json:"cwd,omitempty"` User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` ProxyEnv *ProxyEnv `protobuf:"bytes,5,opt,name=proxy_env,json=proxyEnv" json:"proxy_env,omitempty"` ExtraHosts []*HostIP `protobuf:"bytes,6,rep,name=extraHosts" json:"extraHosts,omitempty"` }
Meta is a set of arguments for ExecOp. Meta is unrelated to LLB metadata. FIXME: rename (ExecContext? ExecArgs?)
func (*Meta) Descriptor ¶
func (*Meta) GetExtraHosts ¶
func (*Meta) GetProxyEnv ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
type Mount ¶
type Mount struct { Input InputIndex `protobuf:"varint,1,opt,name=input,proto3,customtype=InputIndex" json:"input"` Selector string `protobuf:"bytes,2,opt,name=selector,proto3" json:"selector,omitempty"` Dest string `protobuf:"bytes,3,opt,name=dest,proto3" json:"dest,omitempty"` Output OutputIndex `protobuf:"varint,4,opt,name=output,proto3,customtype=OutputIndex" json:"output"` Readonly bool `protobuf:"varint,5,opt,name=readonly,proto3" json:"readonly,omitempty"` MountType MountType `protobuf:"varint,6,opt,name=mountType,proto3,enum=pb.MountType" json:"mountType,omitempty"` CacheOpt *CacheOpt `protobuf:"bytes,20,opt,name=cacheOpt" json:"cacheOpt,omitempty"` SecretOpt *SecretOpt `protobuf:"bytes,21,opt,name=secretOpt" json:"secretOpt,omitempty"` }
Mount specifies how to mount an input Op as a filesystem.
func (*Mount) Descriptor ¶
func (*Mount) GetCacheOpt ¶
func (*Mount) GetMountType ¶
func (*Mount) GetReadonly ¶
func (*Mount) GetSecretOpt ¶
func (*Mount) GetSelector ¶
func (*Mount) ProtoMessage ¶
func (*Mount) ProtoMessage()
type MountType ¶
type MountType int32
MountType defines a type of a mount from a supported set
func (MountType) EnumDescriptor ¶
type Op ¶
type Op struct { // inputs is a set of input edges. Inputs []*Input `protobuf:"bytes,1,rep,name=inputs" json:"inputs,omitempty"` // Types that are valid to be assigned to Op: // *Op_Exec // *Op_Source // *Op_Copy // *Op_Build Op isOp_Op `protobuf_oneof:"op"` Platform *Platform `protobuf:"bytes,10,opt,name=platform" json:"platform,omitempty"` Constraints *WorkerConstraints `protobuf:"bytes,11,opt,name=constraints" json:"constraints,omitempty"` }
Op represents a vertex of the LLB DAG.
func (*Op) Descriptor ¶
func (*Op) GetConstraints ¶
func (m *Op) GetConstraints() *WorkerConstraints
func (*Op) GetPlatform ¶
func (*Op) ProtoMessage ¶
func (*Op) ProtoMessage()
type OpMetadata ¶
type OpMetadata struct { // ignore_cache specifies to ignore the cache for this Op. IgnoreCache bool `protobuf:"varint,1,opt,name=ignore_cache,json=ignoreCache,proto3" json:"ignore_cache,omitempty"` // Description can be used for keeping any text fields that builder doesn't parse Description map[string]string `` /* 156-byte string literal not displayed */ // index 3 reserved for WorkerConstraint in previous versions // WorkerConstraint worker_constraint = 3; ExportCache *ExportCache `protobuf:"bytes,4,opt,name=export_cache,json=exportCache" json:"export_cache,omitempty"` Caps map[github_com_moby_buildkit_util_apicaps.CapID]bool `` /* 185-byte string literal not displayed */ }
OpMetadata is a per-vertex metadata entry, which can be defined for arbitrary Op vertex and overridable on the run time.
func (*OpMetadata) Descriptor ¶
func (*OpMetadata) Descriptor() ([]byte, []int)
func (*OpMetadata) GetCaps ¶
func (m *OpMetadata) GetCaps() map[github_com_moby_buildkit_util_apicaps.CapID]bool
func (*OpMetadata) GetDescription ¶
func (m *OpMetadata) GetDescription() map[string]string
func (*OpMetadata) GetExportCache ¶
func (m *OpMetadata) GetExportCache() *ExportCache
func (*OpMetadata) GetIgnoreCache ¶
func (m *OpMetadata) GetIgnoreCache() bool
func (*OpMetadata) Marshal ¶
func (m *OpMetadata) Marshal() (dAtA []byte, err error)
func (*OpMetadata) ProtoMessage ¶
func (*OpMetadata) ProtoMessage()
func (*OpMetadata) Reset ¶
func (m *OpMetadata) Reset()
func (*OpMetadata) Size ¶
func (m *OpMetadata) Size() (n int)
func (*OpMetadata) String ¶
func (m *OpMetadata) String() string
func (*OpMetadata) Unmarshal ¶
func (m *OpMetadata) Unmarshal(dAtA []byte) error
type Op_Source ¶
type Op_Source struct {
Source *SourceOp `protobuf:"bytes,3,opt,name=source,oneof"`
}
type Platform ¶
type Platform struct { Architecture string `protobuf:"bytes,1,opt,name=Architecture,proto3" json:"Architecture,omitempty"` OS string `protobuf:"bytes,2,opt,name=OS,proto3" json:"OS,omitempty"` Variant string `protobuf:"bytes,3,opt,name=Variant,proto3" json:"Variant,omitempty"` OSVersion string `protobuf:"bytes,4,opt,name=OSVersion,proto3" json:"OSVersion,omitempty"` OSFeatures []string `protobuf:"bytes,5,rep,name=OSFeatures" json:"OSFeatures,omitempty"` }
Platform is github.com/opencontainers/image-spec/specs-go/v1.Platform
func PlatformFromSpec ¶
func PlatformsFromSpec ¶
func (*Platform) Descriptor ¶
func (*Platform) GetArchitecture ¶
func (*Platform) GetOSFeatures ¶
func (*Platform) GetOSVersion ¶
func (*Platform) GetVariant ¶
func (*Platform) ProtoMessage ¶
func (*Platform) ProtoMessage()
type ProxyEnv ¶
type ProxyEnv struct { HttpProxy string `protobuf:"bytes,1,opt,name=http_proxy,json=httpProxy,proto3" json:"http_proxy,omitempty"` HttpsProxy string `protobuf:"bytes,2,opt,name=https_proxy,json=httpsProxy,proto3" json:"https_proxy,omitempty"` FtpProxy string `protobuf:"bytes,3,opt,name=ftp_proxy,json=ftpProxy,proto3" json:"ftp_proxy,omitempty"` NoProxy string `protobuf:"bytes,4,opt,name=no_proxy,json=noProxy,proto3" json:"no_proxy,omitempty"` }
func (*ProxyEnv) Descriptor ¶
func (*ProxyEnv) GetFtpProxy ¶
func (*ProxyEnv) GetHttpProxy ¶
func (*ProxyEnv) GetHttpsProxy ¶
func (*ProxyEnv) GetNoProxy ¶
func (*ProxyEnv) ProtoMessage ¶
func (*ProxyEnv) ProtoMessage()
type SecretOpt ¶
type SecretOpt struct { // ID of secret. Used for quering the value. ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` // UID of secret file Uid uint32 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // GID of secret file Gid uint32 `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"` // Mode is the filesystem mode of secret file Mode uint32 `protobuf:"varint,4,opt,name=mode,proto3" json:"mode,omitempty"` // Optional defines if secret value is required. Error is produced // if value is not found and optional is false. Optional bool `protobuf:"varint,5,opt,name=optional,proto3" json:"optional,omitempty"` }
SecretOpt defines options describing secret mounts
func (*SecretOpt) Descriptor ¶
func (*SecretOpt) GetOptional ¶
func (*SecretOpt) ProtoMessage ¶
func (*SecretOpt) ProtoMessage()
type SourceOp ¶
type SourceOp struct { // TODO: use source type or any type instead of URL protocol. // identifier e.g. local://, docker-image://, git://, https://... Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"` // attrs are defined in attr.go Attrs map[string]string `` /* 144-byte string literal not displayed */ }
SourceOp specifies a source such as build contexts and images.
func (*SourceOp) Descriptor ¶
func (*SourceOp) GetIdentifier ¶
func (*SourceOp) ProtoMessage ¶
func (*SourceOp) ProtoMessage()
type WorkerConstraints ¶
type WorkerConstraints struct {
Filter []string `protobuf:"bytes,1,rep,name=filter" json:"filter,omitempty"`
}
WorkerConstraints defines conditions for the worker
func (*WorkerConstraints) Descriptor ¶
func (*WorkerConstraints) Descriptor() ([]byte, []int)
func (*WorkerConstraints) GetFilter ¶
func (m *WorkerConstraints) GetFilter() []string
func (*WorkerConstraints) Marshal ¶
func (m *WorkerConstraints) Marshal() (dAtA []byte, err error)
func (*WorkerConstraints) MarshalTo ¶
func (m *WorkerConstraints) MarshalTo(dAtA []byte) (int, error)
func (*WorkerConstraints) ProtoMessage ¶
func (*WorkerConstraints) ProtoMessage()
func (*WorkerConstraints) Reset ¶
func (m *WorkerConstraints) Reset()
func (*WorkerConstraints) Size ¶
func (m *WorkerConstraints) Size() (n int)
func (*WorkerConstraints) String ¶
func (m *WorkerConstraints) String() string
func (*WorkerConstraints) Unmarshal ¶
func (m *WorkerConstraints) Unmarshal(dAtA []byte) error