storagejail

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2026 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Root

type Root struct {
	// contains filtered or unexported fields
}

func New

func New(rootPath string) (Root, error)

func (Root) Create

func (root Root) Create(relativePath string) (*os.File, error)

func (Root) DirectorySize

func (root Root) DirectorySize(relativePath string) (int64, error)

func (Root) FileSize

func (root Root) FileSize(relativePath string) (int64, error)

func (Root) MkdirAll

func (root Root) MkdirAll(relativePath string, perm fs.FileMode) error

func (Root) Open

func (root Root) Open(relativePath string) (*os.File, error)

func (Root) ReadFile

func (root Root) ReadFile(relativePath string) ([]byte, error)

func (Root) RelativePath

func (root Root) RelativePath(candidatePath string) (string, error)

func (Root) Remove

func (root Root) Remove(relativePath string) error

func (Root) RemoveAll

func (root Root) RemoveAll(relativePath string) error

func (Root) Rename

func (root Root) Rename(oldRelativePath string, newRelativePath string) error

func (Root) Stat

func (root Root) Stat(relativePath string) (fs.FileInfo, error)

func (Root) WriteFile

func (root Root) WriteFile(relativePath string, payload []byte, perm fs.FileMode) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL