Documentation ¶
Index ¶
- Constants
- func New(m map[string]interface{}, ss *grpc.Server) (rgrpc.Service, error)
- func PKG2GRPCXS(xsType string) provider.ResourceChecksumType
- type Service
- func (s *Service) AddGrant(ctx context.Context, req *provider.AddGrantRequest) (*provider.AddGrantResponse, error)
- func (s *Service) Close() error
- func (s *Service) CreateContainer(ctx context.Context, req *provider.CreateContainerRequest) (*provider.CreateContainerResponse, error)
- func (s *Service) CreateHome(ctx context.Context, req *provider.CreateHomeRequest) (*provider.CreateHomeResponse, error)
- func (s *Service) CreateReference(ctx context.Context, req *provider.CreateReferenceRequest) (*provider.CreateReferenceResponse, error)
- func (s *Service) CreateStorageSpace(ctx context.Context, req *provider.CreateStorageSpaceRequest) (*provider.CreateStorageSpaceResponse, error)
- func (s *Service) CreateSymlink(ctx context.Context, req *provider.CreateSymlinkRequest) (*provider.CreateSymlinkResponse, error)
- func (s *Service) Delete(ctx context.Context, req *provider.DeleteRequest) (*provider.DeleteResponse, error)
- func (s *Service) DeleteStorageSpace(ctx context.Context, req *provider.DeleteStorageSpaceRequest) (*provider.DeleteStorageSpaceResponse, error)
- func (s *Service) DenyGrant(ctx context.Context, req *provider.DenyGrantRequest) (*provider.DenyGrantResponse, error)
- func (s *Service) GetHome(ctx context.Context, req *provider.GetHomeRequest) (*provider.GetHomeResponse, error)
- func (s *Service) GetLock(ctx context.Context, req *provider.GetLockRequest) (*provider.GetLockResponse, error)
- func (s *Service) GetPath(ctx context.Context, req *provider.GetPathRequest) (*provider.GetPathResponse, error)
- func (s *Service) GetQuota(ctx context.Context, req *provider.GetQuotaRequest) (*provider.GetQuotaResponse, error)
- func (s *Service) InitiateFileDownload(ctx context.Context, req *provider.InitiateFileDownloadRequest) (*provider.InitiateFileDownloadResponse, error)
- func (s *Service) InitiateFileUpload(ctx context.Context, req *provider.InitiateFileUploadRequest) (*provider.InitiateFileUploadResponse, error)
- func (s *Service) ListContainer(ctx context.Context, req *provider.ListContainerRequest) (*provider.ListContainerResponse, error)
- func (s *Service) ListContainerStream(req *provider.ListContainerStreamRequest, ...) error
- func (s *Service) ListFileVersions(ctx context.Context, req *provider.ListFileVersionsRequest) (*provider.ListFileVersionsResponse, error)
- func (s *Service) ListGrants(ctx context.Context, req *provider.ListGrantsRequest) (*provider.ListGrantsResponse, error)
- func (s *Service) ListRecycle(ctx context.Context, req *provider.ListRecycleRequest) (*provider.ListRecycleResponse, error)
- func (s *Service) ListRecycleStream(req *provider.ListRecycleStreamRequest, ...) error
- func (s *Service) ListStorageSpaces(ctx context.Context, req *provider.ListStorageSpacesRequest) (*provider.ListStorageSpacesResponse, error)
- func (s *Service) Move(ctx context.Context, req *provider.MoveRequest) (*provider.MoveResponse, error)
- func (s *Service) PurgeRecycle(ctx context.Context, req *provider.PurgeRecycleRequest) (*provider.PurgeRecycleResponse, error)
- func (s *Service) RefreshLock(ctx context.Context, req *provider.RefreshLockRequest) (*provider.RefreshLockResponse, error)
- func (s *Service) Register(ss *grpc.Server)
- func (s *Service) RemoveGrant(ctx context.Context, req *provider.RemoveGrantRequest) (*provider.RemoveGrantResponse, error)
- func (s *Service) RestoreFileVersion(ctx context.Context, req *provider.RestoreFileVersionRequest) (*provider.RestoreFileVersionResponse, error)
- func (s *Service) RestoreRecycleItem(ctx context.Context, req *provider.RestoreRecycleItemRequest) (*provider.RestoreRecycleItemResponse, error)
- func (s *Service) SetArbitraryMetadata(ctx context.Context, req *provider.SetArbitraryMetadataRequest) (*provider.SetArbitraryMetadataResponse, error)
- func (s *Service) SetLock(ctx context.Context, req *provider.SetLockRequest) (*provider.SetLockResponse, error)
- func (s *Service) Stat(ctx context.Context, req *provider.StatRequest) (*provider.StatResponse, error)
- func (s *Service) TouchFile(ctx context.Context, req *provider.TouchFileRequest) (*provider.TouchFileResponse, error)
- func (s *Service) Unlock(ctx context.Context, req *provider.UnlockRequest) (*provider.UnlockResponse, error)
- func (s *Service) UnprotectedEndpoints() []string
- func (s *Service) UnsetArbitraryMetadata(ctx context.Context, req *provider.UnsetArbitraryMetadataRequest) (*provider.UnsetArbitraryMetadataResponse, error)
- func (s *Service) UpdateGrant(ctx context.Context, req *provider.UpdateGrantRequest) (*provider.UpdateGrantResponse, error)
- func (s *Service) UpdateStorageSpace(ctx context.Context, req *provider.UpdateStorageSpaceRequest) (*provider.UpdateStorageSpaceResponse, error)
- type XS
Constants ¶
View Source
const ( // XSInvalid means the checksum type is invalid. XSInvalid XS = "invalid" // XSUnset means the checksum is optional. XSUnset = "unset" // XSAdler32 means the checksum is adler32 XSAdler32 = "adler32" // XSMD5 means the checksum is md5 XSMD5 = "md5" // XSSHA1 means the checksum is SHA1 XSSHA1 = "sha1" // XSSHA256 means the checksum is SHA256. XSSHA256 = "sha256" )
Variables ¶
This section is empty.
Functions ¶
func PKG2GRPCXS ¶
func PKG2GRPCXS(xsType string) provider.ResourceChecksumType
PKG2GRPCXS converts an internal checksum type to the grpc checksum type.
Types ¶
type Service ¶ added in v2.20.0
func (*Service) AddGrant ¶ added in v2.20.0
func (s *Service) AddGrant(ctx context.Context, req *provider.AddGrantRequest) (*provider.AddGrantResponse, error)
func (*Service) CreateContainer ¶ added in v2.20.0
func (s *Service) CreateContainer(ctx context.Context, req *provider.CreateContainerRequest) (*provider.CreateContainerResponse, error)
func (*Service) CreateHome ¶ added in v2.20.0
func (s *Service) CreateHome(ctx context.Context, req *provider.CreateHomeRequest) (*provider.CreateHomeResponse, error)
func (*Service) CreateReference ¶ added in v2.20.0
func (s *Service) CreateReference(ctx context.Context, req *provider.CreateReferenceRequest) (*provider.CreateReferenceResponse, error)
func (*Service) CreateStorageSpace ¶ added in v2.20.0
func (s *Service) CreateStorageSpace(ctx context.Context, req *provider.CreateStorageSpaceRequest) (*provider.CreateStorageSpaceResponse, error)
CreateStorageSpace creates a storage space
func (*Service) CreateSymlink ¶ added in v2.20.0
func (s *Service) CreateSymlink(ctx context.Context, req *provider.CreateSymlinkRequest) (*provider.CreateSymlinkResponse, error)
func (*Service) Delete ¶ added in v2.20.0
func (s *Service) Delete(ctx context.Context, req *provider.DeleteRequest) (*provider.DeleteResponse, error)
func (*Service) DeleteStorageSpace ¶ added in v2.20.0
func (s *Service) DeleteStorageSpace(ctx context.Context, req *provider.DeleteStorageSpaceRequest) (*provider.DeleteStorageSpaceResponse, error)
func (*Service) DenyGrant ¶ added in v2.20.0
func (s *Service) DenyGrant(ctx context.Context, req *provider.DenyGrantRequest) (*provider.DenyGrantResponse, error)
func (*Service) GetHome ¶ added in v2.20.0
func (s *Service) GetHome(ctx context.Context, req *provider.GetHomeRequest) (*provider.GetHomeResponse, error)
func (*Service) GetLock ¶ added in v2.20.0
func (s *Service) GetLock(ctx context.Context, req *provider.GetLockRequest) (*provider.GetLockResponse, error)
GetLock returns an existing lock on the given reference
func (*Service) GetPath ¶ added in v2.20.0
func (s *Service) GetPath(ctx context.Context, req *provider.GetPathRequest) (*provider.GetPathResponse, error)
func (*Service) GetQuota ¶ added in v2.20.0
func (s *Service) GetQuota(ctx context.Context, req *provider.GetQuotaRequest) (*provider.GetQuotaResponse, error)
func (*Service) InitiateFileDownload ¶ added in v2.20.0
func (s *Service) InitiateFileDownload(ctx context.Context, req *provider.InitiateFileDownloadRequest) (*provider.InitiateFileDownloadResponse, error)
func (*Service) InitiateFileUpload ¶ added in v2.20.0
func (s *Service) InitiateFileUpload(ctx context.Context, req *provider.InitiateFileUploadRequest) (*provider.InitiateFileUploadResponse, error)
func (*Service) ListContainer ¶ added in v2.20.0
func (s *Service) ListContainer(ctx context.Context, req *provider.ListContainerRequest) (*provider.ListContainerResponse, error)
func (*Service) ListContainerStream ¶ added in v2.20.0
func (s *Service) ListContainerStream(req *provider.ListContainerStreamRequest, ss provider.ProviderAPI_ListContainerStreamServer) error
func (*Service) ListFileVersions ¶ added in v2.20.0
func (s *Service) ListFileVersions(ctx context.Context, req *provider.ListFileVersionsRequest) (*provider.ListFileVersionsResponse, error)
func (*Service) ListGrants ¶ added in v2.20.0
func (s *Service) ListGrants(ctx context.Context, req *provider.ListGrantsRequest) (*provider.ListGrantsResponse, error)
func (*Service) ListRecycle ¶ added in v2.20.0
func (s *Service) ListRecycle(ctx context.Context, req *provider.ListRecycleRequest) (*provider.ListRecycleResponse, error)
func (*Service) ListRecycleStream ¶ added in v2.20.0
func (s *Service) ListRecycleStream(req *provider.ListRecycleStreamRequest, ss provider.ProviderAPI_ListRecycleStreamServer) error
func (*Service) ListStorageSpaces ¶ added in v2.20.0
func (s *Service) ListStorageSpaces(ctx context.Context, req *provider.ListStorageSpacesRequest) (*provider.ListStorageSpacesResponse, error)
func (*Service) Move ¶ added in v2.20.0
func (s *Service) Move(ctx context.Context, req *provider.MoveRequest) (*provider.MoveResponse, error)
func (*Service) PurgeRecycle ¶ added in v2.20.0
func (s *Service) PurgeRecycle(ctx context.Context, req *provider.PurgeRecycleRequest) (*provider.PurgeRecycleResponse, error)
func (*Service) RefreshLock ¶ added in v2.20.0
func (s *Service) RefreshLock(ctx context.Context, req *provider.RefreshLockRequest) (*provider.RefreshLockResponse, error)
RefreshLock refreshes an existing lock on the given reference
func (*Service) RemoveGrant ¶ added in v2.20.0
func (s *Service) RemoveGrant(ctx context.Context, req *provider.RemoveGrantRequest) (*provider.RemoveGrantResponse, error)
func (*Service) RestoreFileVersion ¶ added in v2.20.0
func (s *Service) RestoreFileVersion(ctx context.Context, req *provider.RestoreFileVersionRequest) (*provider.RestoreFileVersionResponse, error)
func (*Service) RestoreRecycleItem ¶ added in v2.20.0
func (s *Service) RestoreRecycleItem(ctx context.Context, req *provider.RestoreRecycleItemRequest) (*provider.RestoreRecycleItemResponse, error)
func (*Service) SetArbitraryMetadata ¶ added in v2.20.0
func (s *Service) SetArbitraryMetadata(ctx context.Context, req *provider.SetArbitraryMetadataRequest) (*provider.SetArbitraryMetadataResponse, error)
func (*Service) SetLock ¶ added in v2.20.0
func (s *Service) SetLock(ctx context.Context, req *provider.SetLockRequest) (*provider.SetLockResponse, error)
SetLock puts a lock on the given reference
func (*Service) Stat ¶ added in v2.20.0
func (s *Service) Stat(ctx context.Context, req *provider.StatRequest) (*provider.StatResponse, error)
func (*Service) TouchFile ¶ added in v2.20.0
func (s *Service) TouchFile(ctx context.Context, req *provider.TouchFileRequest) (*provider.TouchFileResponse, error)
func (*Service) Unlock ¶ added in v2.20.0
func (s *Service) Unlock(ctx context.Context, req *provider.UnlockRequest) (*provider.UnlockResponse, error)
Unlock removes an existing lock from the given reference
func (*Service) UnprotectedEndpoints ¶ added in v2.20.0
func (*Service) UnsetArbitraryMetadata ¶ added in v2.20.0
func (s *Service) UnsetArbitraryMetadata(ctx context.Context, req *provider.UnsetArbitraryMetadataRequest) (*provider.UnsetArbitraryMetadataResponse, error)
func (*Service) UpdateGrant ¶ added in v2.20.0
func (s *Service) UpdateGrant(ctx context.Context, req *provider.UpdateGrantRequest) (*provider.UpdateGrantResponse, error)
func (*Service) UpdateStorageSpace ¶ added in v2.20.0
func (s *Service) UpdateStorageSpace(ctx context.Context, req *provider.UpdateStorageSpaceRequest) (*provider.UpdateStorageSpaceResponse, error)
Click to show internal directories.
Click to hide internal directories.