Documentation ¶
Index ¶
- type Bucket
- func (b *Bucket) ReaderAt(ctx context.Context, filename string) (phlareobjstore.ReaderAtCloser, error)
- func (b *Bucket) ReaderWithExpectedErrs(fn phlareobjstore.IsOpFailureExpectedFunc) phlareobjstore.BucketReader
- func (b *Bucket) WithExpectedErrs(fn phlareobjstore.IsOpFailureExpectedFunc) phlareobjstore.Bucket
- type Config
- type FileReaderAt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
func NewBucket ¶
func NewBucket(rootDir string, middlewares ...func(objstore.Bucket) (objstore.Bucket, error)) (*Bucket, error)
NewBucket returns a new filesystem.Bucket.
func (*Bucket) ReaderAt ¶
func (b *Bucket) ReaderAt(ctx context.Context, filename string) (phlareobjstore.ReaderAtCloser, error)
func (*Bucket) ReaderWithExpectedErrs ¶ added in v1.1.0
func (b *Bucket) ReaderWithExpectedErrs(fn phlareobjstore.IsOpFailureExpectedFunc) phlareobjstore.BucketReader
ReaderWithExpectedErrs implements objstore.Bucket.
func (*Bucket) WithExpectedErrs ¶ added in v1.1.0
func (b *Bucket) WithExpectedErrs(fn phlareobjstore.IsOpFailureExpectedFunc) phlareobjstore.Bucket
WithExpectedErrs implements objstore.Bucket.
type Config ¶
type Config struct {
Directory string `yaml:"dir"`
}
Config stores the configuration for storing and accessing objects in the local filesystem.
func (*Config) RegisterFlags ¶
RegisterFlags registers the flags for filesystem storage
func (*Config) RegisterFlagsWithPrefix ¶
RegisterFlagsWithPrefix registers the flags for filesystem storage with the provided prefix
func (*Config) RegisterFlagsWithPrefixAndDefaultDirectory ¶
RegisterFlagsWithPrefixAndDefaultDirectory registers the flags for filesystem storage with the provided prefix and sets the default directory to dir.
Click to show internal directories.
Click to hide internal directories.