Documentation ¶
Overview ¶
Package pllb is a wrapper around llb, which makes it compatible with concurrent code. The standard BuildKit llb package does not allow llb.State to be used from different goroutines.
Index ¶
- func AddMount(dest string, mountState State, opts ...llb.MountOption) llb.RunOption
- type CopyInput
- type ExecState
- type FileAction
- func (fa *FileAction) Copy(input CopyInput, src, dest string, opt ...llb.CopyOption) *FileAction
- func (fa *FileAction) Mkdir(p string, m os.FileMode, opt ...llb.MkdirOption) *FileAction
- func (fa *FileAction) Mkfile(p string, m os.FileMode, dt []byte, opt ...llb.MkfileOption) *FileAction
- func (fa *FileAction) Rm(p string, opt ...llb.RmOption) *FileAction
- type State
- func (s State) AddEnv(key, value string) State
- func (s State) AddExtraHost(hostname string, ip net.IP) State
- func (s State) Dir(str string) State
- func (s State) File(a *FileAction, opts ...llb.ConstraintsOpt) State
- func (s State) GetDir(ctx context.Context) (string, error)
- func (s State) Marshal(ctx context.Context, co ...llb.ConstraintsOpt) (*llb.Definition, error)
- func (s State) Output() llb.Output
- func (s State) Platform(p specs.Platform) State
- func (s State) RawState() (llb.State, func())
- func (s State) Run(ro ...llb.RunOption) ExecState
- func (s State) SetMarshalDefaults(co ...llb.ConstraintsOpt) State
- func (s State) UnsafeUnwrap() llb.CopyInput
- func (s State) User(v string) State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecState ¶
type ExecState struct {
// contains filtered or unexported fields
}
ExecState is a wrapper around llb.ExecState.
type FileAction ¶
type FileAction struct {
// contains filtered or unexported fields
}
FileAction is a wrapper around llb.FileAction.
func Copy ¶
func Copy(input CopyInput, src, dest string, opts ...llb.CopyOption) *FileAction
Copy is a wrapper around llb.Copy.
func Mkdir ¶
func Mkdir(p string, m os.FileMode, opt ...llb.MkdirOption) *FileAction
Mkdir is a wrapper around llb.Mkdir.
func Mkfile ¶
func Mkfile(p string, m os.FileMode, dt []byte, opts ...llb.MkfileOption) *FileAction
Mkfile is a wrapper around llb.Mkfile.
func (*FileAction) Copy ¶
func (fa *FileAction) Copy(input CopyInput, src, dest string, opt ...llb.CopyOption) *FileAction
Copy is a wrapper around llb.Copy.
func (*FileAction) Mkdir ¶
func (fa *FileAction) Mkdir(p string, m os.FileMode, opt ...llb.MkdirOption) *FileAction
Mkdir is a wrapper around llb.Mkdir.
func (*FileAction) Mkfile ¶
func (fa *FileAction) Mkfile(p string, m os.FileMode, dt []byte, opt ...llb.MkfileOption) *FileAction
Mkfile is a wrapper around llb.Mkfile.
func (*FileAction) Rm ¶
func (fa *FileAction) Rm(p string, opt ...llb.RmOption) *FileAction
Rm is a wrapper around llb.Rm.
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is a wrapper around llb.State.
func FromRawState ¶
FromRawState creates a wrapper around a raw llb.State.
func Image ¶
func Image(ref string, opts ...llb.ImageOption) State
Image is a wrapper around llb.Image.
func Local ¶
func Local(name string, opts ...llb.LocalOption) State
Local is a wrapper around llb.Local.
func Merge ¶
func Merge(sts []State, opts ...llb.ConstraintsOpt) State
Merge is a wrapper around llb.Merge.
func (State) AddExtraHost ¶
AddExtraHost is a wrapper around llb.AddExtraHost
func (State) File ¶
func (s State) File(a *FileAction, opts ...llb.ConstraintsOpt) State
File is a wrapper around llb.File.
func (State) Marshal ¶
func (s State) Marshal(ctx context.Context, co ...llb.ConstraintsOpt) (*llb.Definition, error)
Marshal is a wrapper around llb.Marshal.
func (State) RawState ¶
RawState returns the wrapped llb.State, but requires an unlock from the caller.
func (State) SetMarshalDefaults ¶
func (s State) SetMarshalDefaults(co ...llb.ConstraintsOpt) State
SetMarshalDefaults is a wrapper around llb.SetMarshalDefaults.
func (State) UnsafeUnwrap ¶
UnsafeUnwrap returns the underlying llb.State without locking.