Versions in this module Expand all Collapse all v0 v0.0.1 Nov 3, 2022 Changes in this version + const DriveDb + const IndicesKey + const O_RWForAll + var ErrDerefNilDB = errors.New("cannot dereference a nil db") + var ErrDerefNilIndex = errors.New("cannot dereference a nil index") + var ErrEmptyFileIdForIndex = errors.New("fileId for index must be non-empty") + var ErrNoDriveContext = errors.New(...) + var ErrNoSuchDbBucket = errors.New("no such bucket exists") + var ErrNoSuchDbKey = errors.New("no such db key exists") + var GDDirSuffix = ".gd" + var PathSeparator = fmt.Sprintf("%c", os.PathSeparator) + func DbSuffixedPath(dir string) string + func LeastNonExistantRoot(contextAbsPath string) string + type Context struct + AbsPath string + ClientId string + ClientSecret string + GSAJWTConfig *jwt.Config + RefreshToken string + func Discover(currentAbsPath string) (*Context, error) + func Initialize(absPath string) (pathGD string, firstInit bool, c *Context, err error) + func (c *Context) AbsPathOf(fileOrDirPath string) string + func (c *Context) CreateIndicesBucket() error + func (c *Context) Cwd() string + func (c *Context) DeInitialize(prompter func(...interface{}) bool, returnOnAnyError bool) error + func (c *Context) DeserializeIndex(key string) (*Index, error) + func (c *Context) ListKeys(dir, bucketName string) (chan string, error) + func (c *Context) OpenDB() (*bolt.DB, error) + func (c *Context) PopIndicesKey(key string) error + func (c *Context) Read() error + func (c *Context) RemoveIndex(index *Index, p string) error + func (c *Context) SerializeIndex(index *Index) error + func (c *Context) Write() error + type Index struct + Etag string + FileId string + IndexTime int64 + Md5Checksum string + MimeType string + ModTime int64 + Version int64 + type Mount struct + CreatedMountDir string + Points []*MountPoint + ShortestMountRoot string + func MountPoints(contextPath, contextAbsPath string, paths []string, hidden bool) (mount *Mount, sources []string) + type MountPoint struct + AbsPath string + CanClean bool + MountPath string + Name string + func (mpt *MountPoint) Unmount() error