Versions in this module Expand all Collapse all v0 v0.1.0 Oct 26, 2024 Changes in this version + func NewFs(ctx context.Context, name, path string, m configmap.Mapper) (fs.Fs, error) + type Directory struct + func (d *Directory) Hash() + func (d *Directory) Items() int64 + func (d *Directory) SetMetadata(ctx context.Context, metadata fs.Metadata) error + func (o *Directory) Fs() fs.Info + func (o *Directory) ID() string + func (o *Directory) Metadata(ctx context.Context) (metadata fs.Metadata, err error) + func (o *Directory) MimeType(ctx context.Context) string + func (o *Directory) ModTime(ctx context.Context) time.Time + func (o *Directory) ParentID() string + func (o *Directory) Remote() string + func (o *Directory) Remove(ctx context.Context) error + func (o *Directory) SetModTime(ctx context.Context, modTime time.Time) error + func (o *Directory) Size() int64 + func (o *Directory) Storable() bool + func (o *Directory) String() string + type Fs struct + func (f *Fs) About(ctx context.Context) (*fs.Usage, error) + func (f *Fs) ChangeNotify(ctx context.Context, notifyFunc func(string, fs.EntryType), ...) + func (f *Fs) CleanUp(ctx context.Context) error + func (f *Fs) Command(ctx context.Context, name string, arg []string, opt map[string]string) (out interface{}, err error) + func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object, error) + func (f *Fs) CreateDir(ctx context.Context, pathID, leaf string) (newID string, err error) + func (f *Fs) DirCacheFlush() + func (f *Fs) DirMove(ctx context.Context, src fs.Fs, srcRemote, dstRemote string) error + func (f *Fs) DirSetModTime(ctx context.Context, dir string, modTime time.Time) error + func (f *Fs) Features() *fs.Features + func (f *Fs) FindLeaf(ctx context.Context, pathID, leaf string) (pathIDOut string, found bool, err error) + func (f *Fs) Hashes() hash.Set + func (f *Fs) List(ctx context.Context, dir string) (entries fs.DirEntries, err error) + func (f *Fs) ListR(ctx context.Context, dir string, callback fs.ListRCallback) (err error) + func (f *Fs) MergeDirs(ctx context.Context, dirs []fs.Directory) error + func (f *Fs) Mkdir(ctx context.Context, dir string) error + func (f *Fs) MkdirMetadata(ctx context.Context, dir string, metadata fs.Metadata) (fs.Directory, error) + func (f *Fs) Move(ctx context.Context, src fs.Object, remote string) (fs.Object, error) + func (f *Fs) Name() string + func (f *Fs) NewObject(ctx context.Context, remote string) (fs.Object, error) + func (f *Fs) Precision() time.Duration + func (f *Fs) PublicLink(ctx context.Context, remote string, expire fs.Duration, unlink bool) (link string, err error) + func (f *Fs) Purge(ctx context.Context, dir string) error + func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) + func (f *Fs) PutStream(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) + func (f *Fs) PutUnchecked(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) (fs.Object, error) + func (f *Fs) Rmdir(ctx context.Context, dir string) error + func (f *Fs) Root() string + func (f *Fs) String() string + func (f *Fs) Upload(ctx context.Context, in io.Reader, size int64, ...) (*drive.File, error) + type Object struct + func (o *Object) Fs() fs.Info + func (o *Object) Hash(ctx context.Context, t hash.Type) (string, error) + func (o *Object) ID() string + func (o *Object) Metadata(ctx context.Context) (metadata fs.Metadata, err error) + func (o *Object) MimeType(ctx context.Context) string + func (o *Object) ModTime(ctx context.Context) time.Time + func (o *Object) Open(ctx context.Context, options ...fs.OpenOption) (in io.ReadCloser, err error) + func (o *Object) ParentID() string + func (o *Object) Remote() string + func (o *Object) Remove(ctx context.Context) error + func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error + func (o *Object) Size() int64 + func (o *Object) Storable() bool + func (o *Object) String() string + func (o *Object) Update(ctx context.Context, in io.Reader, src fs.ObjectInfo, options ...fs.OpenOption) error + type Options struct + AcknowledgeAbuse bool + AllowImportNameChange bool + AuthOwnerOnly bool + ChunkSize fs.SizeSuffix + CopyShortcutContent bool + DisableHTTP2 bool + Enc encoder.MultiEncoder + EnvAuth bool + ExportExtensions string + Extensions string + FastListBugFix bool + Impersonate string + ImportExtensions string + KeepRevisionForever bool + ListChunk int64 + MetadataLabels rwChoice + MetadataOwner rwChoice + MetadataPermissions rwChoice + PacerBurst int + PacerMinSleep fs.Duration + ResourceKey string + RootFolderID string + Scope string + ServerSideAcrossConfigs bool + ServiceAccountCredentials string + ServiceAccountFile string + SharedWithMe bool + ShowAllGdocs bool + SizeAsQuota bool + SkipChecksumGphotos bool + SkipDanglingShortcuts bool + SkipGdocs bool + SkipShortcuts bool + StarredOnly bool + StopOnDownloadLimit bool + StopOnUploadLimit bool + TeamDriveID string + TrashedOnly bool + UploadCutoff fs.SizeSuffix + UseCreatedDate bool + UseSharedDate bool + UseTrash bool + V2DownloadMinSize fs.SizeSuffix