Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster interface { Create(size uint64, reader io.Reader) (*common.CreationResult, error) CreateShadow(chunks common.DataChunks) error Read(chunks common.DataChunks) (func(w io.Writer, begins int64, ends int64) error, error) Delete(chunks common.DataChunks) (*common.DeletionResult, error) }
type Dfs ¶
type Dfs interface { CreateFolder(folderPath string) error CreateFile(path string, mime string, size uint64, overwrite bool, contentReader io.Reader) error Read(paths []string, join bool) (ReadContainer, error) Size(folderPath string) (uint64, error) Change(sources []string, target string, join bool, overwrite bool, move bool) error Delete(path string, killZombies bool) error // ExecuteActions executes the hook actions in sync manner ExecuteActions(aI *hooks.ActionInfo, actions []hooks.Action) }
Dfs interface is for file manipulation operations base on REST service request
type Hook ¶
type Hook interface { GetAvailableList() []interface{} Add(folderPaths []string, hook *hooks.Hook) error Delete(folderPath string, hookIds []string) error }
Hook interface is for hook manipulation operations base on REST service request
type ReadContainer ¶
Click to show internal directories.
Click to hide internal directories.