Documentation ¶
Index ¶
- func NewFsNodeWriter(root fs.FsNode, delegate fs.Writer) (w fs.Writer)
- func NewHashingWriter(delegate fs.Writer) fs.Writer
- func NewStringWriter(writer io.Writer, attrs fs.AttrSet) (w fs.Writer)
- type DirWriter
- func (w *DirWriter) Close() (err error)
- func (w *DirWriter) Device(path string, a fs.DeviceAttrs) (err error)
- func (w *DirWriter) Dir(dir, base string, a fs.FileAttrs) (err error)
- func (w *DirWriter) Fifo(file string, a fs.DeviceAttrs) (err error)
- func (w *DirWriter) File(file string, src fs.FileSource) (r fs.Source, err error)
- func (w *DirWriter) Lazy(path, name string, src fs.LazySource, written map[fs.Source]string) (err error)
- func (w *DirWriter) Link(file, target string) (err error)
- func (w *DirWriter) LowerLink(path, target string, a *fs.NodeAttrs) error
- func (w *DirWriter) LowerNode(path, name string, a *fs.NodeAttrs) (err error)
- func (w *DirWriter) Mkdir(dir string) (err error)
- func (w *DirWriter) Parent() error
- func (w *DirWriter) Remove(file string) (err error)
- func (w *DirWriter) Symlink(path string, a fs.FileAttrs) (err error)
- type FsNodeWriter
- func (w *FsNodeWriter) Device(path string, a fs.DeviceAttrs) (err error)
- func (w *FsNodeWriter) Dir(dir, base string, a fs.FileAttrs) (err error)
- func (w *FsNodeWriter) FS() fs.FsNode
- func (w *FsNodeWriter) Fifo(file string, a fs.DeviceAttrs) (err error)
- func (w *FsNodeWriter) File(file string, src fs.FileSource) (r fs.Source, err error)
- func (w *FsNodeWriter) Lazy(path, name string, src fs.LazySource, written map[fs.Source]string) (err error)
- func (w *FsNodeWriter) Link(path, target string) error
- func (w *FsNodeWriter) LowerLink(path, target string, a *fs.NodeAttrs) error
- func (w *FsNodeWriter) LowerNode(path, name string, a *fs.NodeAttrs) (err error)
- func (w *FsNodeWriter) Mkdir(dir string) (err error)
- func (w *FsNodeWriter) Parent() error
- func (w *FsNodeWriter) Remove(file string) (err error)
- func (w *FsNodeWriter) Symlink(path string, a fs.FileAttrs) (err error)
- type HashingWriter
- type StringWriter
- func (w *StringWriter) Device(path string, a fs.DeviceAttrs) (err error)
- func (w *StringWriter) Dir(path, name string, a fs.FileAttrs) (err error)
- func (w *StringWriter) Fifo(path string, a fs.DeviceAttrs) (err error)
- func (w *StringWriter) File(path string, src fs.FileSource) (r fs.Source, err error)
- func (w *StringWriter) Lazy(path, name string, src fs.LazySource, _ map[fs.Source]string) (err error)
- func (w *StringWriter) Link(path, target string) (err error)
- func (w *StringWriter) LowerLink(path, target string, a *fs.NodeAttrs) (err error)
- func (w *StringWriter) LowerNode(path, name string, a *fs.NodeAttrs) (err error)
- func (w *StringWriter) Mkdir(path string) (err error)
- func (w *StringWriter) Parent() (err error)
- func (w *StringWriter) Remove(path string) (err error)
- func (w *StringWriter) Symlink(path string, a fs.FileAttrs) (err error)
- type TarWriter
- func (w *TarWriter) Close() error
- func (w *TarWriter) Device(path string, a fs.DeviceAttrs) (err error)
- func (w *TarWriter) Dir(path, base string, a fs.FileAttrs) (err error)
- func (w *TarWriter) Fifo(path string, a fs.DeviceAttrs) (err error)
- func (w *TarWriter) File(path string, src fs.FileSource) (r fs.Source, err error)
- func (w *TarWriter) Lazy(path, name string, src fs.LazySource, written map[fs.Source]string) (err error)
- func (w *TarWriter) Link(path, target string) (err error)
- func (w *TarWriter) LowerLink(path, target string, a *fs.NodeAttrs) error
- func (w *TarWriter) LowerNode(path, name string, a *fs.NodeAttrs) error
- func (w *TarWriter) Mkdir(path string) (err error)
- func (w *TarWriter) Parent() error
- func (w *TarWriter) Remove(path string) (err error)
- func (w *TarWriter) Symlink(path string, a fs.FileAttrs) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirWriter ¶
type DirWriter struct {
// contains filtered or unexported fields
}
A mapping file system writer that secures root directory boundaries. Derived from umoci's tar_extract.go to allow separate source/dest interfaces and filter archive contents on extraction
func NewDirWriter ¶
type FsNodeWriter ¶
type FsNodeWriter struct {
// contains filtered or unexported fields
}
Writer that builds a node tree and delegates operations to wrapped writer using the inserted node's path.
func (*FsNodeWriter) Device ¶
func (w *FsNodeWriter) Device(path string, a fs.DeviceAttrs) (err error)
func (*FsNodeWriter) FS ¶
func (w *FsNodeWriter) FS() fs.FsNode
func (*FsNodeWriter) Fifo ¶
func (w *FsNodeWriter) Fifo(file string, a fs.DeviceAttrs) (err error)
func (*FsNodeWriter) File ¶
func (w *FsNodeWriter) File(file string, src fs.FileSource) (r fs.Source, err error)
func (*FsNodeWriter) Lazy ¶
func (w *FsNodeWriter) Lazy(path, name string, src fs.LazySource, written map[fs.Source]string) (err error)
func (*FsNodeWriter) Link ¶
func (w *FsNodeWriter) Link(path, target string) error
func (*FsNodeWriter) LowerLink ¶
func (w *FsNodeWriter) LowerLink(path, target string, a *fs.NodeAttrs) error
func (*FsNodeWriter) LowerNode ¶
func (w *FsNodeWriter) LowerNode(path, name string, a *fs.NodeAttrs) (err error)
func (*FsNodeWriter) Mkdir ¶
func (w *FsNodeWriter) Mkdir(dir string) (err error)
func (*FsNodeWriter) Parent ¶
func (w *FsNodeWriter) Parent() error
func (*FsNodeWriter) Remove ¶
func (w *FsNodeWriter) Remove(file string) (err error)
type HashingWriter ¶
func (*HashingWriter) File ¶
func (w *HashingWriter) File(path string, src fs.FileSource) (fs.Source, error)
func (*HashingWriter) Lazy ¶
func (w *HashingWriter) Lazy(path, name string, src fs.LazySource, written map[fs.Source]string) (err error)
type StringWriter ¶
type StringWriter struct {
// contains filtered or unexported fields
}
func (*StringWriter) Device ¶
func (w *StringWriter) Device(path string, a fs.DeviceAttrs) (err error)
func (*StringWriter) Dir ¶
func (w *StringWriter) Dir(path, name string, a fs.FileAttrs) (err error)
func (*StringWriter) Fifo ¶
func (w *StringWriter) Fifo(path string, a fs.DeviceAttrs) (err error)
func (*StringWriter) File ¶
func (w *StringWriter) File(path string, src fs.FileSource) (r fs.Source, err error)
func (*StringWriter) Lazy ¶
func (w *StringWriter) Lazy(path, name string, src fs.LazySource, _ map[fs.Source]string) (err error)
func (*StringWriter) Link ¶
func (w *StringWriter) Link(path, target string) (err error)
func (*StringWriter) LowerLink ¶
func (w *StringWriter) LowerLink(path, target string, a *fs.NodeAttrs) (err error)
func (*StringWriter) LowerNode ¶
func (w *StringWriter) LowerNode(path, name string, a *fs.NodeAttrs) (err error)
func (*StringWriter) Mkdir ¶
func (w *StringWriter) Mkdir(path string) (err error)
func (*StringWriter) Parent ¶
func (w *StringWriter) Parent() (err error)
func (*StringWriter) Remove ¶
func (w *StringWriter) Remove(path string) (err error)
type TarWriter ¶
type TarWriter struct {
// contains filtered or unexported fields
}
A mapping file system writer that secures root directory boundaries. Derived from umoci's tar_extract.go to allow separate source/dest interfaces and filter archive contents on extraction
func NewTarWriter ¶
Click to show internal directories.
Click to hide internal directories.