Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Fixtures = []testutils.Fixture{
&fixture{
name: "boltdb",
},
}
Fixtures for unit testing GCP storage.
Functions ¶
func NewBoltDBIndexClient ¶
func NewBoltDBIndexClient(cfg BoltDBConfig) (chunk.IndexClient, error)
NewBoltDBIndexClient creates a new IndexClient that used BoltDB.
func NewTableClient ¶
func NewTableClient(directory string) (chunk.TableClient, error)
NewTableClient returns a new TableClient.
Types ¶
type BoltDBConfig ¶
type BoltDBConfig struct {
Directory string `yaml:"directory"`
}
BoltDBConfig for a BoltDB index client.
func (*BoltDBConfig) RegisterFlags ¶
func (cfg *BoltDBConfig) RegisterFlags(f *flag.FlagSet)
RegisterFlags registers flags.
type FSConfig ¶
type FSConfig struct {
Directory string `yaml:"directory"`
}
FSConfig is the config for a FSObjectClient.
func (*FSConfig) RegisterFlags ¶
RegisterFlags registers flags.
type FSObjectClient ¶
type FSObjectClient struct {
// contains filtered or unexported fields
}
FSObjectClient holds config for filesystem as object store
func NewFSObjectClient ¶
func NewFSObjectClient(cfg FSConfig) (*FSObjectClient, error)
NewFSObjectClient makes a chunk.ObjectClient which stores chunks as files in the local filesystem.
func (*FSObjectClient) DeleteChunksBefore ¶
DeleteChunksBefore implements BucketClient
func (*FSObjectClient) GetChunks ¶
func (f *FSObjectClient) GetChunks(ctx context.Context, chunks []chunk.Chunk) ([]chunk.Chunk, error)
GetChunks implements ObjectClient
Click to show internal directories.
Click to hide internal directories.