fsentry

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSEntry

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

func (*FSEntry) CreateEntry

func (db *FSEntry) CreateEntry(name string, data interface{}, path ...string) error

func (*FSEntry) CreateFolder

func (db *FSEntry) CreateFolder(name string, data interface{}, path ...string) (*entity.FolderInfo, error)

func (*FSEntry) Drop

func (db *FSEntry) Drop() error

func (*FSEntry) DuplicateEntry

func (db *FSEntry) DuplicateEntry(srcName, dstName string, path ...string) error

func (*FSEntry) DuplicateFolder

func (db *FSEntry) DuplicateFolder(srcName, dstName string, path ...string) (*entity.FolderInfo, error)

func (*FSEntry) GetEntry

func (db *FSEntry) GetEntry(name string, path ...string) (*entity.Entry, error)

func (*FSEntry) GetFolder

func (db *FSEntry) GetFolder(name string, path ...string) (*entity.FolderInfo, error)

func (*FSEntry) Init

func (db *FSEntry) Init() error

func (*FSEntry) List

func (db *FSEntry) List(path ...string) (*entity.List, error)

func (*FSEntry) MoveEntry

func (db *FSEntry) MoveEntry(oldName, newName string, path ...string) error

func (*FSEntry) MoveFolder

func (db *FSEntry) MoveFolder(oldName, newName string, path ...string) (*entity.FolderInfo, error)

func (*FSEntry) RemoveEntry

func (db *FSEntry) RemoveEntry(name string, path ...string) error

func (*FSEntry) RemoveFolder

func (db *FSEntry) RemoveFolder(name string, path ...string) error

func (*FSEntry) UpdateEntry

func (db *FSEntry) UpdateEntry(name string, data interface{}, path ...string) error

func (*FSEntry) UpdateFolder

func (db *FSEntry) UpdateFolder(name string, data interface{}, path ...string) (*entity.FolderInfo, error)

func (*FSEntry) UpdateFolderNameWithoutTimestamp added in v0.0.3

func (db *FSEntry) UpdateFolderNameWithoutTimestamp(name, newName string, path ...string) error

type IFSEntry

type IFSEntry interface {
	Init() error
	Drop() error
	List(path ...string) (*entity.List, error)

	CreateFolder(name string, data interface{}, path ...string) (*entity.FolderInfo, error)
	GetFolder(name string, path ...string) (*entity.FolderInfo, error)
	MoveFolder(oldName, newName string, path ...string) (*entity.FolderInfo, error)
	UpdateFolder(name string, data interface{}, path ...string) (*entity.FolderInfo, error)
	RemoveFolder(name string, path ...string) error
	DuplicateFolder(srcName, dstName string, path ...string) (*entity.FolderInfo, error)
	UpdateFolderNameWithoutTimestamp(name, newName string, path ...string) error

	CreateEntry(name string, data interface{}, path ...string) error
	GetEntry(name string, path ...string) (*entity.Entry, error)
	MoveEntry(oldName, newName string, path ...string) error
	UpdateEntry(name string, data interface{}, path ...string) error
	RemoveEntry(name string, path ...string) error
	DuplicateEntry(srcName, dstName string, path ...string) error
}

func NewFSEntry

func NewFSEntry(root string) IFSEntry

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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