dp

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Repo = DpRepo{/* contains filtered or unexported fields */}

Functions

func InitNetworkSettings

func InitNetworkSettings()

Types

type DpRepo

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

func (*DpRepo) CreateDir

func (r *DpRepo) CreateDir(m *model.Model, parentPath, dirName string) bool

func (*DpRepo) CreateDirByPath

func (r *DpRepo) CreateDirByPath(m *model.Model, dirPath string) bool

func (*DpRepo) Delete

func (r *DpRepo) Delete(m *model.Model, parentPath, fileName string) bool

func (*DpRepo) EnterCurrentDirectory

func (r *DpRepo) EnterCurrentDirectory(m *model.Model)

func (*DpRepo) GetFile

func (r *DpRepo) GetFile(m *model.Model, parentPath, fileName string) []byte

func (*DpRepo) GetFileByPath

func (r *DpRepo) GetFileByPath(m *model.Model, dpPath string) []byte

func (*DpRepo) GetFileName

func (r *DpRepo) GetFileName(filePath string) string

func (*DpRepo) GetFilePath

func (r *DpRepo) GetFilePath(parentPath, relativePath string) string

func (*DpRepo) GetFileType

func (r *DpRepo) GetFileType(m *model.Model, parentPath, fileName string) byte

func (*DpRepo) GetFileTypeFromPath

func (r *DpRepo) GetFileTypeFromPath(m *model.Model, filePath string) byte

func (*DpRepo) IsEmptyDir

func (r *DpRepo) IsEmptyDir(m *model.Model, parentPath, dirName string) bool

func (*DpRepo) ListFiles

func (r *DpRepo) ListFiles(m *model.Model, dirPath string) []model.Item

func (*DpRepo) Load

func (r *DpRepo) Load(m *model.Model)

func (*DpRepo) LoadCurrent

func (r *DpRepo) LoadCurrent(m *model.Model)

func (*DpRepo) UpdateFile

func (r *DpRepo) UpdateFile(m *model.Model, parentPath, fileName string, newFileContent []byte) bool

func (*DpRepo) UpdateFileByPath

func (r *DpRepo) UpdateFileByPath(m *model.Model, dpPath string, newFileContent []byte) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳