Documentation
¶
Index ¶
- func Readonly(m *mount)
- func WithDefaultMetaResolver(ii *ImageInfo)
- 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() ([]byte, *pb.OpMetadata, error)
- func (e *ExecOp) Output() Output
- func (e *ExecOp) Validate() error
- type ExecState
- type GitInfo
- type GitOption
- type ImageInfo
- type ImageMetaResolver
- type ImageOption
- type KeyValue
- type LocalInfo
- type LocalOption
- type Meta
- 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 Reset(s State) RunOption
- func Shlex(str string) RunOption
- func Shlexf(str string, v ...interface{}) 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() (*Definition, error)
- func (s State) Output() Output
- func (s State) Reset(s2 State) State
- func (s State) Run(ro ...RunOption) ExecState
- 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 ¶
This section is empty.
Functions ¶
func WithDefaultMetaResolver ¶
func WithDefaultMetaResolver(ii *ImageInfo)
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 ¶
func ReadonlyRootFS ¶
type ExecOp ¶
type ExecOp struct {
// contains filtered or unexported fields
}
type ExecState ¶
type ExecState struct { State // contains filtered or unexported fields }
type ImageMetaResolver ¶
type ImageMetaResolver interface {
ResolveImageConfig(ctx netcontext.Context, ref string) (digest.Digest, []byte, error)
}
func DefaultImageMetaResolver ¶
func DefaultImageMetaResolver() ImageMetaResolver
func NewImageMetaResolver ¶
func NewImageMetaResolver() ImageMetaResolver
type ImageOption ¶
type ImageOption func(*ImageInfo)
func WithMetaResolver ¶
func WithMetaResolver(mr ImageMetaResolver) ImageOption
type LocalOption ¶
type LocalOption func(*LocalInfo)
func IncludePatterns ¶
func IncludePatterns(p []string) LocalOption
func SessionID ¶
func SessionID(id string) LocalOption
type MountInfo ¶
type MountInfo struct { Target string Source Output Opts []MountOption }
type MountOption ¶
type MountOption func(*mount)
func SourcePath ¶
func SourcePath(src string) MountOption
type OpMetadata ¶
type OpMetadata struct {
pb.OpMetadata
}
type State ¶
type State struct {
// contains filtered or unexported fields
}
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() (*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.