blobdisk

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

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

Go to latest
Published: Sep 15, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobDisk

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

func New

func New(blobDir string) (*BlobDisk, error)

func (*BlobDisk) DeleteBlobData

func (bd *BlobDisk) DeleteBlobData(_ context.Context, id blid.Blid) (bool, error)

DeleteBlobData attempts to remove blob data from disk. Returns true if the data was deleted, false (and possibly an error) otherwise.

func (*BlobDisk) GetBlobReader

func (bd *BlobDisk) GetBlobReader(_ context.Context, offset uint64, id blid.Blid) (io.ReadCloser, bool, error)

func (*BlobDisk) GetBlobWriter

func (bd *BlobDisk) GetBlobWriter(_ context.Context, id blid.Blid) (io.Writer, func(bool) error, error)

func (*BlobDisk) String

func (bd *BlobDisk) String() string

Jump to

Keyboard shortcuts

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