Documentation ¶
Index ¶
- type Manager
- func (m *Manager) AddDir(path string) error
- func (m *Manager) AddFile(path string, content []byte) error
- func (m *Manager) AddSymlink(path string, target string) error
- func (m *Manager) Chmod(path string, mode os.FileMode) error
- func (m *Manager) Chown(path string, uid, gid int) error
- func (m *Manager) Create() error
- func (m *Manager) GetPath(path string) (string, error)
- func (m *Manager) SetRootPath(path string) error
- func (m *Manager) Update() error
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { DirMode os.FileMode FileMode os.FileMode // contains filtered or unexported fields }
Manager manages a filesystem layout in a given path
func (*Manager) AddDir ¶
AddDir adds a directory in layout, will recursively add parent directories if they don't exist
func (*Manager) AddFile ¶
AddFile adds a file in layout, will recursively add parent directories if they don't exist
func (*Manager) AddSymlink ¶
AddSymlink adds a symlink in layout, will recursively add parent directories if they don't exist
func (*Manager) SetRootPath ¶
SetRootPath sets layout root path
type Session ¶
type Session struct { *Manager Layer layer }
Session directory layout manager
func NewSession ¶
func NewSession(path string, fstype string, size int, system *mount.System, layer layer) (*Session, error)
NewSession creates and returns a session directory layout manager
func (*Session) RootFsPath ¶
RootFsPath returns the full path to session rootfs directory
Click to show internal directories.
Click to hide internal directories.