storage

package
v0.0.0-...-c23ba73 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Space

type Space struct {
	// contains filtered or unexported fields
}

func NewSpace

func NewSpace(f fs.Fs, path string, m *manifest.Manifest, lockManager lock.LockManager) *Space

func Open

func Open(uri string, opt options.Options) (*Space, error)

Open opened a space or create if the space does not exist. If space does not exist. schema should not be nullptr, or an error will be returned. If space exists and version is specified, it will restore to the state at this version, or it will choose the latest version.

func (*Space) Delete

func (s *Space) Delete(reader array.RecordReader) error

func (*Space) Fs

func (s *Space) Fs() fs.Fs

func (*Space) GetBlobByteSize

func (s *Space) GetBlobByteSize(name string) (int64, error)

func (*Space) GetCurrentVersion

func (s *Space) GetCurrentVersion() int64

func (*Space) LockManager

func (s *Space) LockManager() lock.LockManager

func (*Space) Manifest

func (s *Space) Manifest() *manifest.Manifest

func (*Space) NewTransaction

func (s *Space) NewTransaction() transaction.Transaction

func (*Space) Path

func (s *Space) Path() string

func (*Space) Read

func (s *Space) Read(readOptions *options.ReadOptions) (array.RecordReader, error)

func (*Space) ReadBlob

func (s *Space) ReadBlob(name string, output []byte) (int, error)

func (*Space) ScanDelete

func (s *Space) ScanDelete() (array.RecordReader, error)

func (*Space) SetLockManager

func (s *Space) SetLockManager(lockManager lock.LockManager)

func (*Space) SetManifest

func (s *Space) SetManifest(manifest *manifest.Manifest)

func (*Space) StatisticsBlobs

func (s *Space) StatisticsBlobs() []blob.Blob

func (*Space) Write

func (s *Space) Write(reader array.RecordReader, options *options.WriteOptions) error

func (*Space) WriteBlob

func (s *Space) WriteBlob(content []byte, name string, replace bool) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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