package file
import "github.com/moby/buildkit/solver/llbsolver/file"
Index ¶
- type Backend
- func NewFileOpBackend(readUser ReadUserCallback) (*Backend, error)
- func (fb *Backend) Copy(ctx context.Context, m1, m2, user, group fileoptypes.Mount, action *pb.FileActionCopy) error
- func (fb *Backend) Mkdir(ctx context.Context, m, user, group fileoptypes.Mount, action *pb.FileActionMkDir) error
- func (fb *Backend) Mkfile(ctx context.Context, m, user, group fileoptypes.Mount, action *pb.FileActionMkFile) error
- func (fb *Backend) Rm(ctx context.Context, m fileoptypes.Mount, action *pb.FileActionRm) error
- func (fb *Backend) Symlink(ctx context.Context, m, user, group fileoptypes.Mount, action *pb.FileActionSymlink) error
- type Mount
- func (m *Mount) IsFileOpMount()
- func (m *Mount) Mountable() snapshot.Mountable
- func (m *Mount) Readonly() bool
- func (m *Mount) Release(ctx context.Context) error
- type ReadUserCallback
- type RefManager
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewFileOpBackend ¶
func NewFileOpBackend(readUser ReadUserCallback) (*Backend, error)
NewFileOpBackend returns a new file operation backend. The executor is currently only used for Windows, and it is used to construct the readUserFn field set in the returned Backend.
func (*Backend) Copy ¶
func (fb *Backend) Copy(ctx context.Context, m1, m2, user, group fileoptypes.Mount, action *pb.FileActionCopy) error
func (*Backend) Mkdir ¶
func (fb *Backend) Mkdir(ctx context.Context, m, user, group fileoptypes.Mount, action *pb.FileActionMkDir) error
func (*Backend) Mkfile ¶
func (fb *Backend) Mkfile(ctx context.Context, m, user, group fileoptypes.Mount, action *pb.FileActionMkFile) error
func (*Backend) Rm ¶
func (fb *Backend) Rm(ctx context.Context, m fileoptypes.Mount, action *pb.FileActionRm) error
func (*Backend) Symlink ¶
func (fb *Backend) Symlink(ctx context.Context, m, user, group fileoptypes.Mount, action *pb.FileActionSymlink) error
type Mount ¶
type Mount struct {
// contains filtered or unexported fields
}
func (*Mount) IsFileOpMount ¶
func (m *Mount) IsFileOpMount()
func (*Mount) Mountable ¶
func (*Mount) Readonly ¶
func (*Mount) Release ¶
type ReadUserCallback ¶
type RefManager ¶
type RefManager struct {
// contains filtered or unexported fields
}
func NewRefManager ¶
func NewRefManager(cm cache.Manager, name string) *RefManager
func (*RefManager) Commit ¶
func (rm *RefManager) Commit(ctx context.Context, mount fileoptypes.Mount) (fileoptypes.Ref, error)
func (*RefManager) Prepare ¶
func (rm *RefManager) Prepare(ctx context.Context, ref fileoptypes.Ref, readonly bool, g session.Group) (_ fileoptypes.Mount, rerr error)
Source Files ¶
backend.go backend_unix.go refmanager.go unpack.go
- Version
- v0.20.0-rc2
- Published
- Feb 13, 2025
- Platform
- js/wasm
- Imports
- 21 packages
- Last checked
- 4 minutes ago –
Tools for package owners.