blobs

package
v0.0.0-...-3cef9f2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SortKey

type SortKey interface {
	Less(b SortKey) bool
}

type Store

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

func NewStore

func NewStore(backend backends.Backend, blobSize int64, maxUnflushed int) *Store

func (*Store) Close

func (s *Store) Close() error

func (*Store) Flush

func (s *Store) Flush(ctx context.Context) (err error)

func (*Store) Put

func (s *Store) Put(ctx context.Context, data io.ReadCloser, size int64, sortKey SortKey, cb func(ctx context.Context, stream *manifest.Stream, lastOfBlob bool) error) error

Jump to

Keyboard shortcuts

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