config

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorStringParseFailed = "Configuration parse failed"

Functions

This section is empty.

Types

type InfluxCleanConfig

type InfluxCleanConfig struct {
	Name      string
	Influxdb1 []Influxdb1Info
}

func NewInfluxCleanConfig added in v0.0.2

func NewInfluxCleanConfig() *InfluxCleanConfig

func (*InfluxCleanConfig) ReadFile

func (c *InfluxCleanConfig) ReadFile(f io.Reader) error

ReadFile reads a config reader, expands env variables and parse config

type Influxdb1Info

type Influxdb1Info struct {
	URL                string
	EnvUser            string
	EnvPassword        string
	User               string
	Password           string
	InsecureSkipVerify bool
	Oldseries          []OldSeriesInfo
}

type OldSeriesInfo

type OldSeriesInfo struct {
	Name          string
	Databases     []string
	Rp            string
	Measurement   string
	Field         string
	Filter        string
	Tags          []string
	DropFromAll   bool
	SleepDuration string
	HistoryWindow []string
	CurrentWindow []string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL