Documentation ¶
Index ¶
- func NewFS(config libkbfs.Config, log logger.Logger) keybase1.FsInterface
- func ParseTlfHandle(ctx context.Context, kbpki libkbfs.KBPKI, mdOps libkbfs.MDOps, ...) (*tlfhandle.Handle, error)
- type CannotJoinPathErr
- type InvalidPathErr
- type Path
- func (p Path) DirAndBasename() (dir Path, basename string, err error)
- func (p Path) GetDirNode(ctx context.Context, config libkbfs.Config) (libkbfs.Node, error)
- func (p Path) GetFileNode(ctx context.Context, config libkbfs.Config) (libkbfs.Node, error)
- func (p Path) GetNode(ctx context.Context, config libkbfs.Config) (libkbfs.Node, libkbfs.EntryInfo, error)
- func (p Path) Join(childName string) (childPath Path, err error)
- func (p Path) String() string
- type PathType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CannotJoinPathErr ¶
type CannotJoinPathErr struct {
// contains filtered or unexported fields
}
CannotJoinPathErr is returned on Join error
func (CannotJoinPathErr) Error ¶
func (e CannotJoinPathErr) Error() string
type InvalidPathErr ¶
type InvalidPathErr struct {
// contains filtered or unexported fields
}
InvalidPathErr is error for invalid paths
func (InvalidPathErr) Error ¶
func (e InvalidPathErr) Error() string
type Path ¶
Path defines a file path in KBFS such as /keybase/public or /keybase/private/gabrielh
func (Path) DirAndBasename ¶
DirAndBasename returns directory and base filename
func (Path) GetDirNode ¶
GetDirNode returns a nil node if this doesn't have type TLFPathType
func (Path) GetFileNode ¶
GetFileNode returns a file node
func (Path) GetNode ¶
func (p Path) GetNode(ctx context.Context, config libkbfs.Config) (libkbfs.Node, libkbfs.EntryInfo, error)
GetNode returns a node
type PathType ¶
type PathType int
PathType describes the types for different paths
const ( // InvalidPathType denotes an invalid path type InvalidPathType PathType = iota // RootPathType is a root path type (like /) RootPathType // KeybasePathType is the keybase root (like /keybase) KeybasePathType // KeybaseChildPathType is a keybase reserved path (like /keybase/public) KeybaseChildPathType // TLFPathType is a top level folder (/keybase/public/gabrielh) TLFPathType )
Click to show internal directories.
Click to hide internal directories.