Documentation
¶
Overview ¶
Package repo contains interface used to model access to both DataPower and local filesystem.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { String() string GetInitialItem() (model.Item, error) GetTitle(currentView *model.ItemConfig) string GetList(currentView *model.ItemConfig) (model.ItemList, error) InvalidateCache() GetFile(currentView *model.ItemConfig, fileName string) ([]byte, error) UpdateFile(currentView *model.ItemConfig, fileName string, newFileContent []byte) (bool, error) GetFileType(currentView *model.ItemConfig, parentPath, fileName string) (model.ItemType, error) GetFilePath(parentPath, fileName string) string CreateDir(viewConfig *model.ItemConfig, parentPath, dirName string) (bool, error) Delete(currentView *model.ItemConfig, itemType model.ItemType, parentPath, fileName string) (bool, error) GetViewConfigByPath(currentView *model.ItemConfig, dirPath string) (*model.ItemConfig, error) GetItemInfo(itemConfig *model.ItemConfig) ([]byte, error) ExecConfig(itemConfig *model.ItemConfig) error }
Repo is a common repository methods implemented by local filesystem and DataPower
Click to show internal directories.
Click to hide internal directories.