es_filesystem_model

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorTypePathNotFound = iota
	ErrorTypeConflict
	ErrorTypeNoPermission
	ErrorTypeInsufficientSpace
	ErrorTypeDisallowedName
	ErrorTypeInvalidEntryDataFormat
	ErrorTypeOther
)
View Source
const (
	FileSystemTypeModel = "model"
)

Variables

This section is empty.

Functions

func NewEntry

func NewEntry(path string, node em_file.Node) es_filesystem.Entry

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) Base

func (z Path) Base() string

func (Path) Descendant

func (z Path) Descendant(pathFragment ...string) es_filesystem.Path

func (Path) IsRoot

func (z Path) IsRoot() bool

func (Path) Path

func (z Path) Path() string

func (Path) Rel

func (Path) Shard

func (z Path) Shard() es_filesystem.Shard

Jump to

Keyboard shortcuts

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