Documentation
¶
Index ¶
- Constants
- func CheckChunkExistance(key string, objClient client.ObjectClient) (bool, error)
- func DownloadIndexFile(ctx context.Context, cfg Config, cloudIndexPath string, ...) (string, error)
- func GetObjectClient(cfg Config) (client.ObjectClient, error)
- func ParseCompactexIndex(ctx context.Context, localFilePath, table string, cfg Config) (compactor.CompactedIndex, error)
- func Run(ctx context.Context, cloudIndexPath, table string, cfg Config, ...) (int, int, error)
- func ValidateCompactedIndex(ctx context.Context, objClient client.ObjectClient, ...) (int, int, error)
- type Config
- type FileConfig
Constants ¶
View Source
const (
TsFormat = time.RFC3339Nano
)
Variables ¶
This section is empty.
Functions ¶
func CheckChunkExistance ¶
func CheckChunkExistance(key string, objClient client.ObjectClient) (bool, error)
func DownloadIndexFile ¶
func GetObjectClient ¶
func GetObjectClient(cfg Config) (client.ObjectClient, error)
func ParseCompactexIndex ¶
func ValidateCompactedIndex ¶
Types ¶
type Config ¶
type Config struct { FileConfig `yaml:",inline"` Tenant string `yaml:"tenant,omitempty"` SchemaConfig lokiStorage.SchemaConfig `yaml:"schema_config,omitempty"` StorageConfig storage.Config `yaml:"storage_config,omitempty"` LogLevel dskitlog.Level `yaml:"log_level"` Concurrency int `yaml:"concurrency"` WorkingDir string `yaml:"working_dir"` Period string `yaml:"period,omitempty"` }
Config Loki related storage and schema configs
func (*Config) Clone ¶
func (c *Config) Clone() flagext.Registerer
Clone takes advantage of pass-by-value semantics to return a distinct *Config. This is primarily used to parse a different flag set without mutating the original *Config.
func (*Config) RegisterFlags ¶
type FileConfig ¶
type FileConfig struct {
ConfigFile string
}
func (*FileConfig) RegisterFlags ¶
func (c *FileConfig) RegisterFlags(f *flag.FlagSet)
Click to show internal directories.
Click to hide internal directories.