Documentation
¶
Index ¶
- type FileDir
- type FilesystemConfig
- type FilesystemDir
- func (d FilesystemDir) Describe() string
- func (d FilesystemDir) DescribeSelf() string
- func (d *FilesystemDir) GetFile(name string) (error, *FilesystemFile)
- func (cwd *FilesystemDir) GetFileOrDir(root *FilesystemDir, path string) (error, FileDir)
- func (d *FilesystemDir) GetSubdir(name string) (error, *FilesystemDir)
- func (d FilesystemDir) Path() string
- func (d *FilesystemDir) PathHelp(belowRoot bool) string
- func (d FilesystemDir) PlainName() string
- func (d FilesystemDir) TabcompleteName() string
- func (d *FilesystemDir) TryCD() (error, *FilesystemDir)
- func (d FilesystemDir) TryCat() (error, string)
- type FilesystemFile
- func (f FilesystemFile) Describe() string
- func (f FilesystemFile) DescribeSelf() string
- func (f FilesystemFile) Path() string
- func (f FilesystemFile) PlainName() string
- func (f FilesystemFile) TabcompleteName() string
- func (f FilesystemFile) TryCD() (error, *FilesystemDir)
- func (f FilesystemFile) TryCat() (error, string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilesystemConfig ¶
type FilesystemConfig struct {
Root *FilesystemDir `json:"root"`
}
func StrToFilesystem ¶
func StrToFilesystem(cfg []byte) FilesystemConfig
func (*FilesystemConfig) ToString ¶
func (cfg *FilesystemConfig) ToString() (string, error)
type FilesystemDir ¶
type FilesystemDir struct { Name string `yaml:"name"` Permissions int `yaml:"permissions"` Subdirs []*FilesystemDir `yaml:"subdirs"` Files []*FilesystemFile `yaml:"files"` Parent *FilesystemDir `yaml:"-"` }
func (FilesystemDir) Describe ¶
func (d FilesystemDir) Describe() string
func (FilesystemDir) DescribeSelf ¶
func (d FilesystemDir) DescribeSelf() string
func (*FilesystemDir) GetFile ¶
func (d *FilesystemDir) GetFile(name string) (error, *FilesystemFile)
func (*FilesystemDir) GetFileOrDir ¶
func (cwd *FilesystemDir) GetFileOrDir(root *FilesystemDir, path string) (error, FileDir)
func (*FilesystemDir) GetSubdir ¶
func (d *FilesystemDir) GetSubdir(name string) (error, *FilesystemDir)
func (FilesystemDir) Path ¶
func (d FilesystemDir) Path() string
func (*FilesystemDir) PathHelp ¶
func (d *FilesystemDir) PathHelp(belowRoot bool) string
func (FilesystemDir) PlainName ¶
func (d FilesystemDir) PlainName() string
func (FilesystemDir) TabcompleteName ¶
func (d FilesystemDir) TabcompleteName() string
func (*FilesystemDir) TryCD ¶
func (d *FilesystemDir) TryCD() (error, *FilesystemDir)
func (FilesystemDir) TryCat ¶
func (d FilesystemDir) TryCat() (error, string)
type FilesystemFile ¶
type FilesystemFile struct { Name string `yaml:"name"` Content string `yaml:"content"` Parent *FilesystemDir `yaml:"-"` }
func (FilesystemFile) Describe ¶
func (f FilesystemFile) Describe() string
func (FilesystemFile) DescribeSelf ¶
func (f FilesystemFile) DescribeSelf() string
func (FilesystemFile) Path ¶
func (f FilesystemFile) Path() string
func (FilesystemFile) PlainName ¶
func (f FilesystemFile) PlainName() string
func (FilesystemFile) TabcompleteName ¶
func (f FilesystemFile) TabcompleteName() string
func (FilesystemFile) TryCD ¶
func (f FilesystemFile) TryCD() (error, *FilesystemDir)
func (FilesystemFile) TryCat ¶
func (f FilesystemFile) TryCat() (error, string)
Click to show internal directories.
Click to hide internal directories.