Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) + type Fs struct + func (f *Fs) CleanUp(ctx context.Context) (err 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) Features() *fs.Features + 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) Mkdir(ctx context.Context, dir string) 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) 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) Rmdir(ctx context.Context, dir string) error + func (f *Fs) Root() string + func (f *Fs) String() string + type Object struct + func (o *Object) Fs() fs.Info + func (o *Object) GetTier() string + func (o *Object) Hash(ctx context.Context, t hash.Type) (string, 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) Remote() string + func (o *Object) Remove(ctx context.Context) error + func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error + func (o *Object) SetTier(tier string) (err 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 + ACL string + AccessKeyID string + BucketACL string + ChunkSize fs.SizeSuffix + CopyCutoff fs.SizeSuffix + DisableChecksum bool + Enc encoder.MultiEncoder + Endpoint string + EnvAuth bool + ForcePathStyle bool + LeavePartsOnError bool + ListChunk int64 + LocationConstraint string + MaxUploadParts int64 + MemoryPoolFlushTime fs.Duration + MemoryPoolUseMmap bool + NoCheckBucket bool + Profile string + Provider string + Region string + SSECustomerAlgorithm string + SSECustomerKey string + SSECustomerKeyMD5 string + SSEKMSKeyID string + SecretAccessKey string + ServerSideEncryption string + SessionToken string + SharedCredentialsFile string + StorageClass string + UploadConcurrency int + UploadCutoff fs.SizeSuffix + UseAccelerateEndpoint bool + V2Auth bool