metastore

package
v0.0.0-...-846f54e Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotExist      = errors.New("does not exist")
	ErrAlreadyExists = errors.New("already exists")
)

Functions

This section is empty.

Types

type Bucket

type Bucket interface {
	Metadata() (*BucketMetadata, error)
	Object(name string) (*Object, error)
	PutObject(name string, options PutObjectOptions) (*Object, error)
}

type BucketMetadata

type BucketMetadata struct {
	CreatedAt time.Time
	UpdatedAt time.Time

	Versioning bool
}

type NewBucketOptions

type NewBucketOptions struct {
	Versioning bool
}

type Object

type Object struct {
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt time.Time

	Chunks         []chunkstore.ChunkHash
	MD5Sum         [md5.Size]byte
	Generation     int64
	Metageneration int64
}

type PutObjectOptions

type PutObjectOptions struct {
	Chunks []chunkstore.ChunkHash
	MD5Sum [md5.Size]byte
}

type Store

type Store interface {
	Bucket(name string) (Bucket, error)
	CreateBucket(name string, options NewBucketOptions) (Bucket, error)
	DeleteBucket(name string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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