Versions in this module Expand all Collapse all v1 v1.0.48 May 8, 2018 Changes in this version type FS + func (fs *FS) SubscribeToObsolete() (<-chan struct{}, error) + type LastWriterGetter interface + LastWriter func() (keybase1.User, error) v1.0.44 Feb 21, 2018 Changes in this version + const DisableAutoJournalsFileName + const DisableBlockPrefetchingFileName + const DisableDebugServerFileName + const DisableJournalFileName + const DisableSyncFileName + const DisableUpdatesFileName + const EditHistoryName + const EnableAutoJournalsFileName + const EnableBlockPrefetchingFileName + const EnableDebugServerFileName + const EnableJournalFileName + const EnableSyncFileName + const EnableUpdatesFileName + const FileInfoPrefix + const FlushJournalFileName + const HumanErrorFileName + const HumanNoLoginFileName + const InitErrorCode + const MetricsFileName + const MountErrorCode + const PauseJournalBackgroundWorkFileName + const ProfileListDirName + const ReclaimQuotaFileName + const RekeyFileName + const ResetCachesFileName + const ResumeJournalBackgroundWorkFileName + const StatusFileName + const SyncFromServerFileName + const UnstageFileName + const UpdateHistoryFileName + func FilterTLFEarlyExitError(ctx context.Context, err error, log logger.Logger, name tlf.CanonicalName) (exitEarly bool, retErr error) + func GetEncodedErrors(config libkbfs.Config) func(context.Context) ([]byte, time.Time, error) + func GetEncodedFolderStatus(ctx context.Context, config libkbfs.Config, folderBranch libkbfs.FolderBranch) (data []byte, t time.Time, err error) + func GetEncodedMetrics(config libkbfs.Config) func(context.Context) ([]byte, time.Time, error) + func GetEncodedStatus(ctx context.Context, config libkbfs.Config) (data []byte, t time.Time, err error) + func GetEncodedTlfEditHistory(ctx context.Context, config libkbfs.Config, folderBranch libkbfs.FolderBranch) (data []byte, t time.Time, err error) + func GetEncodedUpdateHistory(ctx context.Context, config libkbfs.Config, folderBranch libkbfs.FolderBranch) (data []byte, t time.Time, err error) + func IsSupportedProfileName(name string) bool + func IsWriter(ctx context.Context, kbpki libkbfs.KBPKI, h *libkbfs.TlfHandle) (bool, error) + func ParseTlfHandlePreferredQuick(ctx context.Context, kbpki libkbfs.KBPKI, name string, ty tlf.Type) (handle *libkbfs.TlfHandle, err error) + func PrettyJSON(value interface{}) ([]byte, error) + func ProfileGet(name string) func(context.Context) ([]byte, time.Time, error) + func TimeEqual(a, b time.Time) bool + func UnstageForTesting(ctx context.Context, log logger.Logger, config libkbfs.Config, ...) (int, error) + func WritePermMode(ctx context.Context, node libkbfs.Node, original os.FileMode, ...) (os.FileMode, error) + type CtxAppIDType int + const CtxAppIDKey + type Error struct + Code int + Message string + func InitError(message string) *Error + func MountError(message string) *Error + type FS struct + func NewFS(ctx context.Context, config libkbfs.Config, tlfHandle *libkbfs.TlfHandle, ...) (*FS, error) + func (fs *FS) Chmod(name string, mode os.FileMode) (err error) + func (fs *FS) Chown(name string, uid, gid int) error + func (fs *FS) Chroot(p string) (newFS billy.Filesystem, err error) + func (fs *FS) ChrootAsLibFS(p string) (newFS *FS, err error) + func (fs *FS) Chtimes(name string, atime time.Time, mtime time.Time) (err error) + func (fs *FS) Config() libkbfs.Config + func (fs *FS) Create(filename string) (billy.File, error) + func (fs *FS) GetLockNamespace() (lockNamespace []byte) + func (fs *FS) Join(elem ...string) string + func (fs *FS) Lchown(name string, uid, gid int) error + func (fs *FS) Lstat(filename string) (fi os.FileInfo, err error) + func (fs *FS) MkdirAll(filename string, perm os.FileMode) (err error) + func (fs *FS) Open(filename string) (billy.File, error) + func (fs *FS) OpenFile(filename string, flag int, perm os.FileMode) (f billy.File, err error) + func (fs *FS) ReadDir(p string) (fis []os.FileInfo, err error) + func (fs *FS) Readlink(link string) (target string, err error) + func (fs *FS) Remove(filename string) (err error) + func (fs *FS) Rename(oldpath, newpath string) (err error) + func (fs *FS) Root() string + func (fs *FS) RootNode() libkbfs.Node + func (fs *FS) SetLockNamespace(lockNamespace []byte) + func (fs *FS) Stat(filename string) (fi os.FileInfo, err error) + func (fs *FS) SubscribeToEvents(ch chan<- FSEvent) + func (fs *FS) Symlink(target, link string) (err error) + func (fs *FS) SyncAll() error + func (fs *FS) TempFile(dir, prefix string) (billy.File, error) + func (fs *FS) ToHTTPFileSystem(ctx context.Context) http.FileSystem + func (fs *FS) UnsubscribeToEvents(ch chan<- FSEvent) + func (fs *FS) WithContext(ctx context.Context) *FS + type FSEvent struct + Done <-chan struct{} + EventType FSEventType + File *File + type FSEventType int + const FSEventLock + const FSEventUnlock + type FSNotifications struct + func NewFSNotifications(log logger.Logger) *FSNotifications + func (f *FSNotifications) LaunchProcessor(ctx context.Context) + func (f *FSNotifications) QueueNotification(fn func()) + func (f *FSNotifications) Wait() + type File struct + func (f *File) Close() error + func (f *File) GetNode() libkbfs.Node + func (f *File) Lock() (err error) + func (f *File) Name() string + func (f *File) Read(p []byte) (n int, err error) + func (f *File) ReadAt(p []byte, off int64) (n int, err error) + func (f *File) Seek(offset int64, whence int) (n int64, err error) + func (f *File) Truncate(size int64) error + func (f *File) Unlock() (err error) + func (f *File) Write(p []byte) (n int, err error) + type FileInfo struct + func (fi *FileInfo) IsDir() bool + func (fi *FileInfo) ModTime() time.Time + func (fi *FileInfo) Mode() os.FileMode + func (fi *FileInfo) Name() string + func (fi *FileInfo) Size() int64 + func (fi *FileInfo) Sys() interface{} + type JSONReportedError struct + Error string + Stack []goerrors.StackFrame + Time time.Time + type JournalAction int + const JournalDisable + const JournalDisableAuto + const JournalEnable + const JournalEnableAuto + const JournalFlush + const JournalPauseBackgroundWork + const JournalResumeBackgroundWork + func (a JournalAction) Execute(ctx context.Context, jServer *libkbfs.JournalServer, tlfID tlf.ID, ...) error + func (a JournalAction) String() string + type MountInterrupter struct + func NewMountInterrupter(log logger.Logger) *MountInterrupter + func (mi *MountInterrupter) Done() + func (mi *MountInterrupter) MountAndSetUnmount(mounter Mounter) error + func (mi *MountInterrupter) Wait() + type Mounter interface + Mount func() error + Unmount func() error + type RemoteStatus struct + func (r *RemoteStatus) ExtraFileName() string + func (r *RemoteStatus) ExtraFileNameAndSize() (string, int64) + func (r *RemoteStatus) Init(ctx context.Context, log logger.Logger, config libkbfs.Config, ...) + func (r *RemoteStatus) NewSpecialReadFunc(ctx context.Context) ([]byte, time.Time, error) + type RemoteStatusUpdater interface + UserChanged func(ctx context.Context, oldName, newName libkb.NormalizedUsername) + type SyncAction int + const SyncDisable + const SyncEnable + func (a SyncAction) Execute(ctx context.Context, c libkbfs.Config, fb libkbfs.FolderBranch, ...) (err error) + func (a SyncAction) String() string + type TlfDoesNotExist struct + func (TlfDoesNotExist) Error() string Incompatible versions in this module v2.11.0+incompatible Nov 30, 2018