Documentation ¶
Index ¶
- Variables
- func ExpandPath(path string, ro bool) (string, error)
- type OverlayFS
- func (r *OverlayFS) CopyForWriting(path string) (string, error)
- func (r *OverlayFS) ExpandPath(path string) (string, error)
- func (r *OverlayFS) IsTopLayer(path string) bool
- func (r *OverlayFS) ShrinkPath(expandedPath string) (string, error)
- func (r *OverlayFS) WipeFile(path string) error
- func (r *OverlayFS) WipeFolder(path string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KetosChrootToImg bool KetosChrootDir string KetosChrootImgTag string )
Functions ¶
Types ¶
type OverlayFS ¶
type OverlayFS struct {
// contains filtered or unexported fields
}
OverlayFS presents an object to parse path to the right layer path
func NewDefaultOverlayFS ¶
func NewDefaultOverlayFS() *OverlayFS
func NewOverlayFS ¶
NewOverlayFS generate a new OverlayFS object
func NewOverlayFSFromEnv ¶
NewOverlayFSFromEnv generate OverlayFS instance from environment variable KETOS_ROOTPATH_LAYERS, default value is "/:/_ketos"
func NewSimpleOverlayFS ¶
func (*OverlayFS) CopyForWriting ¶
CopyForWriting copy the lower layer file to top layer for writting
func (*OverlayFS) ExpandPath ¶
Expand expand the path to the right layer path
func (*OverlayFS) IsTopLayer ¶
IsTopLayer check if the file path is in top layer
func (*OverlayFS) ShrinkPath ¶
ShrinkPath shrink the expanded path to the fake rootfs path
func (*OverlayFS) WipeFolder ¶
WipeFolder wipe a folder on top layer
Click to show internal directories.
Click to hide internal directories.