Documentation ¶
Index ¶
- Variables
- func New(filesystem afero.Fs) (NodeProvider, FileProvider, error)
- type FileProvider
- type NodeProvider
- func (p NodeProvider) Create(ctx context.Context, newFileNode model.CreateFileNode) (model.FileNode, error)
- func (p NodeProvider) DeleteById(_ context.Context, id model.ID) error
- func (p NodeProvider) GetById(_ context.Context, id model.ID) (model.FileNode, error)
- func (p NodeProvider) GetByPath(_ context.Context, path string) (model.FileNode, error)
- func (p NodeProvider) SetState(ctx context.Context, id model.ID, newState model.NodeState) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFileIsNotInDeleteState = errors.New("file is not in delete state")
)
View Source
var (
ErrFilesystemNil = errors.New("the given filesystem is nil")
)
View Source
var (
ErrNameNotAllowed = errors.New("the name is not allowed")
)
Functions ¶
func New ¶ added in v0.1.5
func New(filesystem afero.Fs) (NodeProvider, FileProvider, error)
Types ¶
type FileProvider ¶ added in v0.1.5
func (FileProvider) Delete ¶ added in v0.1.5
func (p FileProvider) Delete(_ context.Context, id string) error
type NodeProvider ¶ added in v0.1.5
func (NodeProvider) Create ¶ added in v0.1.5
func (p NodeProvider) Create(ctx context.Context, newFileNode model.CreateFileNode) (model.FileNode, error)
func (NodeProvider) DeleteById ¶ added in v0.1.5
Click to show internal directories.
Click to hide internal directories.