metadataStorage

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundErr

func IsNotFoundErr(e error) bool

IsNotFoundErr can be returned by repo Load and Delete operations

Types

type MetadataStorage

type MetadataStorage struct {
	SpaceRoot *provider.ResourceId
	// contains filtered or unexported fields
}

func NewMetadataStorage

func NewMetadataStorage(providerAddr string) (s MetadataStorage, err error)

func (*MetadataStorage) Init added in v1.17.0

func (ms *MetadataStorage) Init(ctx context.Context, serviceUser config.ServiceUser) (err error)

init creates the metadata space

func (MetadataStorage) SimpleDownload

func (ms MetadataStorage) SimpleDownload(ctx context.Context, downloadpath string) (content []byte, err error)

func (MetadataStorage) SimpleUpload

func (ms MetadataStorage) SimpleUpload(ctx context.Context, uploadpath string, content []byte) error

Jump to

Keyboard shortcuts

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