noop

package
v3.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectClient

type ObjectClient struct {
}

ObjectClient holds config for filesystem as object store

func NewNoopObjectClient

func NewNoopObjectClient() (*ObjectClient, error)

NewNoopObjectClient makes a chunk.Client which stores chunks as files in the local filesystem.

func (*ObjectClient) DeleteChunksBefore

func (f *ObjectClient) DeleteChunksBefore(_ context.Context, _ time.Time) error

DeleteChunksBefore implements BucketClient

func (*ObjectClient) DeleteObject

func (f *ObjectClient) DeleteObject(_ context.Context, _ string) error

func (*ObjectClient) GetAttributes

func (f *ObjectClient) GetAttributes(_ context.Context, _ string) (client.ObjectAttributes, error)

GetAttributes implements ObjectClient

func (*ObjectClient) GetObject

func (f *ObjectClient) GetObject(_ context.Context, _ string) (io.ReadCloser, int64, error)

GetObject from the store

func (*ObjectClient) GetObjectRange

func (f *ObjectClient) GetObjectRange(_ context.Context, _ string, _, _ int64) (io.ReadCloser, error)

func (*ObjectClient) IsObjectNotFoundErr

func (f *ObjectClient) IsObjectNotFoundErr(_ error) bool

IsObjectNotFoundErr returns true if error means that object is not found. Relevant to GetObject and DeleteObject operations.

func (*ObjectClient) IsRetryableErr

func (f *ObjectClient) IsRetryableErr(_ error) bool

func (*ObjectClient) List

List implements chunk.ObjectClient. ObjectClient assumes that prefix is a directory, and only supports "" and "/" delimiters.

func (*ObjectClient) ObjectExists

func (f *ObjectClient) ObjectExists(_ context.Context, _ string) (bool, error)

func (*ObjectClient) PutObject

func (f *ObjectClient) PutObject(_ context.Context, _ string, _ io.Reader) error

PutObject into the store

func (ObjectClient) Stop

func (ObjectClient) Stop()

Stop implements ObjectClient

Jump to

Keyboard shortcuts

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