Documentation ¶
Index ¶
- Constants
- func NewEntry(path string, node em_file.Node) es_filesystem.Entry
- func NewError(err error, errType int) es_filesystem.FileSystemError
- func NewFileSystem(root em_file.Node) es_filesystem.FileSystem
- func NewPath(path string) es_filesystem.Path
- type Entry
- type FileSystemError
- func (z FileSystemError) Error() string
- func (z FileSystemError) IsConflict() bool
- func (z FileSystemError) IsDisallowedName() bool
- func (z FileSystemError) IsInsufficientSpace() bool
- func (z FileSystemError) IsInvalidEntryDataFormat() bool
- func (z FileSystemError) IsMockError() bool
- func (z FileSystemError) IsNoPermission() bool
- func (z FileSystemError) IsPathNotFound() bool
- type Path
- func (z Path) Ancestor() es_filesystem.Path
- func (z Path) AsData() es_filesystem.PathData
- func (z Path) Base() string
- func (z Path) Descendant(pathFragment ...string) es_filesystem.Path
- func (z Path) IsRoot() bool
- func (z Path) Path() string
- func (z Path) Rel(path es_filesystem.Path) (string, es_filesystem.FileSystemError)
- func (z Path) Shard() es_filesystem.Shard
Constants ¶
View Source
const ( ErrorTypePathNotFound = iota ErrorTypeConflict ErrorTypeNoPermission ErrorTypeInsufficientSpace ErrorTypeDisallowedName ErrorTypeInvalidEntryDataFormat ErrorTypeOther )
View Source
const (
FileSystemTypeModel = "model"
)
Variables ¶
This section is empty.
Functions ¶
func NewError ¶
func NewError(err error, errType int) es_filesystem.FileSystemError
func NewFileSystem ¶
func NewFileSystem(root em_file.Node) es_filesystem.FileSystem
func NewPath ¶
func NewPath(path string) es_filesystem.Path
Types ¶
type Entry ¶
type Entry struct { es_filesystem.EntryData // contains filtered or unexported fields }
func (Entry) AsData ¶
func (z Entry) AsData() es_filesystem.EntryData
func (Entry) ContentHash ¶
func (z Entry) ContentHash() (string, es_filesystem.FileSystemError)
func (Entry) Path ¶
func (z Entry) Path() es_filesystem.Path
type FileSystemError ¶
type FileSystemError struct {
// contains filtered or unexported fields
}
func (FileSystemError) Error ¶
func (z FileSystemError) Error() string
func (FileSystemError) IsConflict ¶
func (z FileSystemError) IsConflict() bool
func (FileSystemError) IsDisallowedName ¶
func (z FileSystemError) IsDisallowedName() bool
func (FileSystemError) IsInsufficientSpace ¶
func (z FileSystemError) IsInsufficientSpace() bool
func (FileSystemError) IsInvalidEntryDataFormat ¶
func (z FileSystemError) IsInvalidEntryDataFormat() bool
func (FileSystemError) IsMockError ¶
func (z FileSystemError) IsMockError() bool
func (FileSystemError) IsNoPermission ¶
func (z FileSystemError) IsNoPermission() bool
func (FileSystemError) IsPathNotFound ¶
func (z FileSystemError) IsPathNotFound() bool
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func (Path) Ancestor ¶
func (z Path) Ancestor() es_filesystem.Path
func (Path) AsData ¶
func (z Path) AsData() es_filesystem.PathData
func (Path) Descendant ¶
func (z Path) Descendant(pathFragment ...string) es_filesystem.Path
func (Path) Rel ¶
func (z Path) Rel(path es_filesystem.Path) (string, es_filesystem.FileSystemError)
func (Path) Shard ¶
func (z Path) Shard() es_filesystem.Shard
Click to show internal directories.
Click to hide internal directories.