Documentation
¶
Index ¶
- type FS
- func (f *FS) AddGrant(ctx context.Context, ref *provider.Reference, g *provider.Grant) error
- func (f *FS) AddLabel(ctx context.Context, ref *provider.Reference, userID *userpb.UserId, ...) error
- func (f *FS) CommitUpload(ctx context.Context, ref *provider.Reference, sessionID string, ...) error
- func (f *FS) CreateDir(ctx context.Context, ref *provider.Reference) (*storage.CreateDirResult, error)
- func (f *FS) CreateHome(ctx context.Context) error
- func (f *FS) CreateReference(ctx context.Context, path string, targetURI *url.URL) error
- func (f *FS) CreateStorageSpace(ctx context.Context, req *provider.CreateStorageSpaceRequest) (*provider.CreateStorageSpaceResponse, error)
- func (f *FS) Delete(ctx context.Context, ref *provider.Reference) (*storage.DeleteResult, error)
- func (f *FS) DeleteStorageSpace(ctx context.Context, req *provider.DeleteStorageSpaceRequest) (*storage.DeleteStorageSpaceResult, error)
- func (f *FS) DenyGrant(ctx context.Context, ref *provider.Reference, g *provider.Grantee) error
- func (f *FS) Download(ctx context.Context, ref *provider.Reference, ...) (*provider.ResourceInfo, io.ReadCloser, error)
- func (f *FS) DownloadRevision(ctx context.Context, ref *provider.Reference, key string, ...) (*provider.ResourceInfo, io.ReadCloser, error)
- func (f *FS) EmptyRecycle(ctx context.Context, ref *provider.Reference) error
- func (f *FS) GetHome(ctx context.Context) (string, error)
- func (f *FS) GetLock(ctx context.Context, ref *provider.Reference) (*provider.Lock, error)
- func (f *FS) GetMD(ctx context.Context, ref *provider.Reference, mdKeys, fieldMask []string) (*provider.ResourceInfo, error)
- func (f *FS) GetPathByID(ctx context.Context, id *provider.ResourceId) (string, error)
- func (f *FS) GetQuota(ctx context.Context, ref *provider.Reference) (uint64, uint64, uint64, error)
- func (f *FS) IsOrphaned(ctx context.Context, ref *provider.Reference) bool
- func (f *FS) ListFolder(ctx context.Context, ref *provider.Reference, mdKeys, fieldMask []string) ([]*provider.ResourceInfo, error)
- func (f *FS) ListGrants(ctx context.Context, ref *provider.Reference) ([]*provider.Grant, error)
- func (f *FS) ListRecycle(ctx context.Context, ref *provider.Reference, key, relativePath string) ([]*provider.RecycleItem, error)
- func (f *FS) ListRevisions(ctx context.Context, ref *provider.Reference) ([]*provider.FileVersion, error)
- func (f *FS) ListStorageSpaces(ctx context.Context, filter []*provider.ListStorageSpacesRequest_Filter, ...) ([]*provider.StorageSpace, error)
- func (f *FS) MarkProcessing(ctx context.Context, ref *provider.Reference, processing bool, ...) error
- func (f *FS) Move(ctx context.Context, oldRef, newRef *provider.Reference) (*storage.MoveResult, error)
- func (f *FS) PrepareCreatesNode() bool
- func (f *FS) PrepareUpload(ctx context.Context, ref *provider.Reference, sessionID string, ...) (*storage.PrepareUploadResult, error)
- func (f *FS) PurgeRecycleItem(ctx context.Context, ref *provider.Reference, key, relativePath string) error
- func (f *FS) RefreshLock(ctx context.Context, ref *provider.Reference, lock *provider.Lock, ...) error
- func (f *FS) RemoveGrant(ctx context.Context, ref *provider.Reference, g *provider.Grant) error
- func (f *FS) RemoveLabel(ctx context.Context, ref *provider.Reference, userID *userpb.UserId, ...) error
- func (f *FS) RestoreRecycleItem(ctx context.Context, ref *provider.Reference, key, relativePath string, ...) (*storage.RestoreRecycleItemResult, error)
- func (f *FS) RestoreRevision(ctx context.Context, ref *provider.Reference, key string) (*storage.RestoreRevisionResult, error)
- func (f *FS) RollbackUpload(ctx context.Context, ref *provider.Reference, sessionID string, ...) error
- func (f *FS) SetArbitraryMetadata(ctx context.Context, ref *provider.Reference, md *provider.ArbitraryMetadata) error
- func (f *FS) SetLock(ctx context.Context, ref *provider.Reference, lock *provider.Lock) (*storage.SetLockResult, error)
- func (f *FS) Shutdown(ctx context.Context) error
- func (f *FS) TouchFile(ctx context.Context, ref *provider.Reference, markprocessing bool, ...) (*storage.TouchFileResult, error)
- func (f *FS) Unlock(ctx context.Context, ref *provider.Reference, lock *provider.Lock) (*storage.UnlockResult, error)
- func (f *FS) UnsetArbitraryMetadata(ctx context.Context, ref *provider.Reference, keys []string) error
- func (f *FS) UpdateGrant(ctx context.Context, ref *provider.Reference, g *provider.Grant) error
- func (f *FS) UpdateStorageSpace(ctx context.Context, req *provider.UpdateStorageSpaceRequest) (*provider.UpdateStorageSpaceResponse, error)
- func (fs *FS) WithDisabledSpaces() storage.FS
- type Hook
- type UnHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS is a storage.FS implementation that wraps another storage.FS and calls hooks before and after each method.
func (*FS) CommitUpload ¶
func (*FS) CreateReference ¶
func (*FS) CreateStorageSpace ¶
func (f *FS) CreateStorageSpace(ctx context.Context, req *provider.CreateStorageSpaceRequest) (*provider.CreateStorageSpaceResponse, error)
func (*FS) DeleteStorageSpace ¶
func (f *FS) DeleteStorageSpace(ctx context.Context, req *provider.DeleteStorageSpaceRequest) (*storage.DeleteStorageSpaceResult, error)
func (*FS) Download ¶
func (f *FS) Download(ctx context.Context, ref *provider.Reference, openReaderFunc func(md *provider.ResourceInfo) bool) (*provider.ResourceInfo, io.ReadCloser, error)
func (*FS) DownloadRevision ¶
func (f *FS) DownloadRevision(ctx context.Context, ref *provider.Reference, key string, openReaderFunc func(md *provider.ResourceInfo) bool) (*provider.ResourceInfo, io.ReadCloser, error)
func (*FS) EmptyRecycle ¶
func (*FS) GetPathByID ¶
func (*FS) IsOrphaned ¶
IsOrphaned reports whether the referenced resource exists but its metadata is unreadable.
func (*FS) ListFolder ¶
func (*FS) ListGrants ¶
func (*FS) ListRecycle ¶
func (*FS) ListRevisions ¶
func (*FS) ListStorageSpaces ¶
func (f *FS) ListStorageSpaces(ctx context.Context, filter []*provider.ListStorageSpacesRequest_Filter, unrestricted bool) ([]*provider.StorageSpace, error)
func (*FS) MarkProcessing ¶
func (*FS) PrepareCreatesNode ¶
PrepareCreatesNode reports whether the wrapped driver's PrepareUpload creates a new file's node.
func (*FS) PrepareUpload ¶
func (*FS) PurgeRecycleItem ¶
func (*FS) RefreshLock ¶
func (*FS) RemoveGrant ¶
func (*FS) RemoveLabel ¶
func (*FS) RestoreRecycleItem ¶
func (*FS) RestoreRevision ¶
func (*FS) RollbackUpload ¶
func (*FS) SetArbitraryMetadata ¶
func (*FS) UnsetArbitraryMetadata ¶
func (*FS) UpdateGrant ¶
func (*FS) UpdateStorageSpace ¶
func (f *FS) UpdateStorageSpace(ctx context.Context, req *provider.UpdateStorageSpaceRequest) (*provider.UpdateStorageSpaceResponse, error)
func (*FS) WithDisabledSpaces ¶
WithDisabledSpaces returns a filesystem that can list disabled spaces