Documentation ¶
Index ¶
- Variables
- func Readonly(m *mount)
- func WriteTo(def *Definition, w io.Writer) error
- type Definition
- type EnvList
- type ExecInfo
- type ExecOp
- func (e *ExecOp) AddMount(target string, source Output, opt ...MountOption) Output
- func (e *ExecOp) GetMount(target string) Output
- func (e *ExecOp) Inputs() (inputs []Output)
- func (e *ExecOp) Marshal() (digest.Digest, []byte, *OpMetadata, error)
- func (e *ExecOp) Output() Output
- func (e *ExecOp) Validate() error
- type ExecState
- type GitInfo
- type GitOption
- type HTTPInfo
- type HTTPOption
- type ImageInfo
- type ImageMetaResolver
- type ImageOption
- type ImageOptionFunc
- type KeyValue
- type LocalInfo
- type LocalOption
- type Meta
- type MetadataOpt
- type MountInfo
- type MountOption
- type OpMetadata
- type Output
- type RunOption
- func AddEnv(key, value string) RunOption
- func AddEnvf(key, value string, v ...interface{}) RunOption
- func AddMount(dest string, mountState State, opts ...MountOption) RunOption
- func Args(a []string) RunOption
- func Dir(str string) RunOption
- func Dirf(str string, v ...interface{}) RunOption
- func ReadonlyRootFS() RunOption
- func Reset(s State) RunOption
- func Shlex(str string) RunOption
- func Shlexf(str string, v ...interface{}) RunOption
- func User(str string) RunOption
- func With(so ...StateOption) RunOption
- type SourceOp
- type State
- func (s State) AddEnv(key, value string) State
- func (s State) AddEnvf(key, value string, v ...interface{}) State
- func (s State) Dir(str string) State
- func (s State) Dirf(str string, v ...interface{}) State
- func (s State) GetArgs() []string
- func (s State) GetDir() string
- func (s State) GetEnv(key string) (string, bool)
- func (s State) Marshal(md ...MetadataOpt) (*Definition, error)
- func (s State) Output() Output
- func (s State) Reset(s2 State) State
- func (s State) Run(ro ...RunOption) ExecState
- func (s State) User(v string) State
- func (s State) Validate() error
- func (s State) Value(k interface{}) interface{}
- func (s State) With(so ...StateOption) State
- func (s State) WithOutput(o Output) State
- func (s State) WithValue(k, v interface{}) State
- type StateOption
- type Vertex
Constants ¶
This section is empty.
Variables ¶
View Source
var IgnoreCache = metadataOptFunc(func(md *OpMetadata) { md.IgnoreCache = true })
Functions ¶
Types ¶
type Definition ¶
type Definition struct { Def [][]byte Metadata map[digest.Digest]OpMetadata }
Definition is the LLB definition structure with per-vertex metadata entries Corresponds to the Definition structure defined in solver/pb.Definition.
func (*Definition) FromPB ¶
func (def *Definition) FromPB(x *pb.Definition)
func (*Definition) ToPB ¶
func (def *Definition) ToPB() *pb.Definition
type ExecInfo ¶
type ExecInfo struct { State State Mounts []MountInfo ReadonlyRootFS bool // contains filtered or unexported fields }
func (*ExecInfo) ApplyMetadata ¶
func (mw *ExecInfo) ApplyMetadata(f func(m *OpMetadata))
func (*ExecInfo) Metadata ¶
func (mw *ExecInfo) Metadata() OpMetadata
type ExecOp ¶
type ExecOp struct {
// contains filtered or unexported fields
}
type ExecState ¶
type ExecState struct { State // contains filtered or unexported fields }
type GitInfo ¶
type GitInfo struct { KeepGitDir bool // contains filtered or unexported fields }
func (*GitInfo) ApplyMetadata ¶
func (mw *GitInfo) ApplyMetadata(f func(m *OpMetadata))
func (*GitInfo) Metadata ¶
func (mw *GitInfo) Metadata() OpMetadata
type GitOption ¶
type GitOption interface {
SetGitOption(*GitInfo)
}
func KeepGitDir ¶
func KeepGitDir() GitOption
type HTTPInfo ¶
type HTTPInfo struct { Checksum digest.Digest Filename string Perm int UID int GID int // contains filtered or unexported fields }
func (*HTTPInfo) ApplyMetadata ¶
func (mw *HTTPInfo) ApplyMetadata(f func(m *OpMetadata))
func (*HTTPInfo) Metadata ¶
func (mw *HTTPInfo) Metadata() OpMetadata
type HTTPOption ¶
type HTTPOption interface {
SetHTTPOption(*HTTPInfo)
}
func Checksum ¶
func Checksum(dgst digest.Digest) HTTPOption
func Chmod ¶
func Chmod(perm os.FileMode) HTTPOption
func Chown ¶
func Chown(uid, gid int) HTTPOption
func Filename ¶
func Filename(name string) HTTPOption
type ImageInfo ¶
type ImageInfo struct {
// contains filtered or unexported fields
}
func (*ImageInfo) ApplyMetadata ¶
func (mw *ImageInfo) ApplyMetadata(f func(m *OpMetadata))
func (*ImageInfo) Metadata ¶
func (mw *ImageInfo) Metadata() OpMetadata
type ImageMetaResolver ¶
type ImageOption ¶
type ImageOption interface {
SetImageOption(*ImageInfo)
}
func WithMetaResolver ¶
func WithMetaResolver(mr ImageMetaResolver) ImageOption
type ImageOptionFunc ¶
type ImageOptionFunc func(*ImageInfo)
func (ImageOptionFunc) SetImageOption ¶
func (fn ImageOptionFunc) SetImageOption(ii *ImageInfo)
type LocalInfo ¶
type LocalInfo struct { SessionID string IncludePatterns string ExcludePatterns string // contains filtered or unexported fields }
func (*LocalInfo) ApplyMetadata ¶
func (mw *LocalInfo) ApplyMetadata(f func(m *OpMetadata))
func (*LocalInfo) Metadata ¶
func (mw *LocalInfo) Metadata() OpMetadata
type LocalOption ¶
type LocalOption interface {
SetLocalOption(*LocalInfo)
}
func ExcludePatterns ¶
func ExcludePatterns(p []string) LocalOption
func IncludePatterns ¶
func IncludePatterns(p []string) LocalOption
func SessionID ¶
func SessionID(id string) LocalOption
func SharedKeyHint ¶
func SharedKeyHint(h string) LocalOption
type MetadataOpt ¶
type MetadataOpt interface { SetMetadataOption(*OpMetadata) RunOption LocalOption HTTPOption ImageOption GitOption }
func WithDescription ¶
func WithDescription(m map[string]string) MetadataOpt
func WithExportCache ¶
func WithExportCache() MetadataOpt
WithExportCache forces results for this vertex to be exported with the cache
func WithoutDefaultExportCache ¶
func WithoutDefaultExportCache() MetadataOpt
WithoutDefaultExportCache resets the cache export for the vertex to use the default defined by the build configuration.
func WithoutExportCache ¶
func WithoutExportCache() MetadataOpt
WithoutExportCache sets results for this vertex to be not exported with the cache
type MountInfo ¶
type MountInfo struct { Target string Source Output Opts []MountOption }
type MountOption ¶
type MountOption func(*mount)
func AsPersistentCacheDir ¶
func AsPersistentCacheDir(id string) MountOption
func SourcePath ¶
func SourcePath(src string) MountOption
type OpMetadata ¶
type OpMetadata = pb.OpMetadata
type RunOption ¶
type RunOption interface {
SetRunOption(es *ExecInfo)
}
func ReadonlyRootFS ¶
func ReadonlyRootFS() RunOption
func With ¶
func With(so ...StateOption) RunOption
type State ¶
type State struct {
// contains filtered or unexported fields
}
func HTTP ¶
func HTTP(url string, opts ...HTTPOption) State
func Image ¶
func Image(ref string, opts ...ImageOption) State
func Local ¶
func Local(name string, opts ...LocalOption) State
func (State) Marshal ¶
func (s State) Marshal(md ...MetadataOpt) (*Definition, error)
func (State) With ¶
func (s State) With(so ...StateOption) State
func (State) WithOutput ¶
type StateOption ¶
Click to show internal directories.
Click to hide internal directories.