pathmgr

package
v0.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathManager

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

func New

func New(controller controller.Controller) (*PathManager, error)

func (*PathManager) Access

func (m *PathManager) Access(ctx context.Context, entryPath string, callerUid, callGid int64, perm os.FileMode) error

func (*PathManager) Controller

func (m *PathManager) Controller() controller.Controller

func (*PathManager) CreateAll

func (m *PathManager) CreateAll(ctx context.Context, entryPath string, attr types.EntryAttr) (*types.Metadata, error)

func (*PathManager) CreateFile

func (m *PathManager) CreateFile(ctx context.Context, parentDir string, attr types.EntryAttr) (*types.Metadata, error)

func (*PathManager) FindEntry

func (m *PathManager) FindEntry(ctx context.Context, entryPath string) (*types.Metadata, error)

func (*PathManager) FindParentEntry

func (m *PathManager) FindParentEntry(ctx context.Context, entryPath string) (*types.Metadata, error)

func (*PathManager) GetEntry

func (m *PathManager) GetEntry(ctx context.Context, entryID int64) (*types.Metadata, error)

func (*PathManager) ListEntry

func (m *PathManager) ListEntry(ctx context.Context, dirPath string) ([]*types.Metadata, error)

func (*PathManager) Open

func (m *PathManager) Open(ctx context.Context, enId int64, attr types.OpenAttr) (dentry.File, error)

func (*PathManager) RemoveAll

func (m *PathManager) RemoveAll(ctx context.Context, entryPath string, recursion bool) error

func (*PathManager) Rename

func (m *PathManager) Rename(ctx context.Context, oldPath, entryPath string) error

Jump to

Keyboard shortcuts

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