repo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	Load(m *model.Model)
	LoadCurrent(m *model.Model)
	EnterCurrentDirectory(m *model.Model)
	ListFiles(m *model.Model, dirPath string) []model.Item
	GetFileType(m *model.Model, parentPath, fileName string) byte
	GetFileTypeFromPath(m *model.Model, filePath string) byte
	GetFileName(filePath string) string
	GetFilePath(parentPath, fileName string) string
	GetFile(m *model.Model, parentPath, fileName string) []byte
	UpdateFile(m *model.Model, parentPath, fileName string, newFileContent []byte) bool
	Delete(m *model.Model, parentPath, fileName string) bool
	CreateDir(m *model.Model, parentPath, dirName string) bool
	IsEmptyDir(m *model.Model, parentPath, dirName string) bool
}

Repo is a common repository methods implemented by local filesystem and DataPower

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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