Documentation ¶
Index ¶
- func CreateChunks(startIndex, batchSize int, from model.Time, through model.Time) ([]string, []chunk.Chunk, error)
- func DefaultSchemaConfig(kind string) chunk.SchemaConfig
- func Setup(fixture Fixture, tableName string) (chunk.IndexClient, chunk.Client, io.Closer, error)
- func SetupTestChunkStore() (chunk.Store, error)
- func SetupTestChunkStoreWithClients(indexClient chunk.IndexClient, chunksClient chunk.Client, ...) (chunk.Store, error)
- func SetupTestObjectStore() (chunk.ObjectClient, error)
- type CloserFunc
- type Fixture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChunks ¶
func CreateChunks(startIndex, batchSize int, from model.Time, through model.Time) ([]string, []chunk.Chunk, error)
CreateChunks creates some chunks for testing
func DefaultSchemaConfig ¶
func DefaultSchemaConfig(kind string) chunk.SchemaConfig
DefaultSchemaConfig returns default schema for use in test fixtures
func SetupTestChunkStore ¶
func SetupTestChunkStoreWithClients ¶
func SetupTestChunkStoreWithClients(indexClient chunk.IndexClient, chunksClient chunk.Client, tableClient chunk.TableClient) (chunk.Store, error)
func SetupTestObjectStore ¶
func SetupTestObjectStore() (chunk.ObjectClient, error)
Types ¶
type CloserFunc ¶
type CloserFunc func() error
CloserFunc is to io.Closer as http.HandlerFunc is to http.Handler.
type Fixture ¶
type Fixture interface { Name() string Clients() (chunk.IndexClient, chunk.Client, chunk.TableClient, chunk.SchemaConfig, io.Closer, error) }
Fixture type for per-backend testing.
Click to show internal directories.
Click to hide internal directories.