storageprovider

package
v2.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

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 New

func New(m map[string]interface{}, ss *grpc.Server) (rgrpc.Service, error)

New creates a new storage provider svc

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

type Service struct {
	Storage storage.FS
	// contains filtered or unexported fields
}

func (*Service) AddGrant added in v2.20.0

func (*Service) Close added in v2.20.0

func (s *Service) Close() error

func (*Service) CreateContainer added in v2.20.0

func (*Service) CreateHome added in v2.20.0

func (*Service) CreateReference added in v2.20.0

func (*Service) CreateStorageSpace added in v2.20.0

CreateStorageSpace creates a storage space

func (*Service) Delete added in v2.20.0

func (*Service) DeleteStorageSpace added in v2.20.0

func (*Service) DenyGrant added in v2.20.0

func (*Service) GetHome added in v2.20.0

func (*Service) GetLock added in v2.20.0

GetLock returns an existing lock on the given reference

func (*Service) GetPath added in v2.20.0

func (*Service) GetQuota added in v2.20.0

func (*Service) InitiateFileDownload added in v2.20.0

func (*Service) InitiateFileUpload added in v2.20.0

func (*Service) ListContainer added in v2.20.0

func (*Service) ListContainerStream added in v2.20.0

func (*Service) ListFileVersions added in v2.20.0

func (*Service) ListGrants added in v2.20.0

func (*Service) ListRecycle added in v2.20.0

func (*Service) ListRecycleStream added in v2.20.0

func (*Service) ListStorageSpaces added in v2.20.0

func (*Service) Move added in v2.20.0

func (*Service) PurgeRecycle added in v2.20.0

func (*Service) RefreshLock added in v2.20.0

RefreshLock refreshes an existing lock on the given reference

func (*Service) Register added in v2.20.0

func (s *Service) Register(ss *grpc.Server)

func (*Service) RemoveGrant added in v2.20.0

func (*Service) RestoreFileVersion added in v2.20.0

func (*Service) RestoreRecycleItem added in v2.20.0

func (*Service) SetArbitraryMetadata added in v2.20.0

func (*Service) SetLock added in v2.20.0

SetLock puts a lock on the given reference

func (*Service) Stat added in v2.20.0

func (*Service) TouchFile added in v2.20.0

func (*Service) Unlock added in v2.20.0

Unlock removes an existing lock from the given reference

func (*Service) UnprotectedEndpoints added in v2.20.0

func (s *Service) UnprotectedEndpoints() []string

func (*Service) UnsetArbitraryMetadata added in v2.20.0

func (*Service) UpdateGrant added in v2.20.0

func (*Service) UpdateStorageSpace added in v2.20.0

type XS

type XS string

XS defines an hex-encoded string as checksum.

func GRPC2PKGXS

func GRPC2PKGXS(t provider.ResourceChecksumType) XS

GRPC2PKGXS converts the grpc checksum type to an internal pkg type.

func (XS) String

func (x XS) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL