Documentation
¶
Index ¶
- type ObjectClient
- func (f *ObjectClient) DeleteChunksBefore(_ context.Context, _ time.Time) error
- func (f *ObjectClient) DeleteObject(_ context.Context, _ string) error
- func (f *ObjectClient) GetAttributes(_ context.Context, _ string) (client.ObjectAttributes, error)
- func (f *ObjectClient) GetObject(_ context.Context, _ string) (io.ReadCloser, int64, error)
- func (f *ObjectClient) GetObjectRange(_ context.Context, _ string, _, _ int64) (io.ReadCloser, error)
- func (f *ObjectClient) IsObjectNotFoundErr(_ error) bool
- func (f *ObjectClient) IsRetryableErr(_ error) bool
- func (f *ObjectClient) List(_ context.Context, _, _ string) ([]client.StorageObject, []client.StorageCommonPrefix, error)
- func (f *ObjectClient) ObjectExists(_ context.Context, _ string) (bool, error)
- func (f *ObjectClient) PutObject(_ context.Context, _ string, _ io.Reader) error
- func (ObjectClient) Stop()
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 ¶
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 ¶
func (f *ObjectClient) List(_ context.Context, _, _ string) ([]client.StorageObject, []client.StorageCommonPrefix, error)
List implements chunk.ObjectClient. ObjectClient assumes that prefix is a directory, and only supports "" and "/" delimiters.
func (*ObjectClient) ObjectExists ¶
Click to show internal directories.
Click to hide internal directories.