task

package
v1.6.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Enabled determines if flux tasks are enabled
	Enabled bool `toml:"enabled"`

	// TaskRunInfluxDB is the name of the influxdb instance finished
	// task runs and logs are written to.
	// Leaving it blank will write to Kapacitor's default influxdb instance.
	// Setting it to 'none' will disable task logging.
	TaskRunInfluxDB string `toml:"task-run-influxdb"`

	// TaskRunBucket is the bucket (or influxdb 1.x database) to use for saving
	// task runs and logs
	TaskRunBucket string `toml:"task-run-bucket"`

	// TaskRunOrg is the org to use for saving task runs and logs
	// task runs and logs.
	// This is ignored if TaskRunInfluxDB is a 1.x database
	// Only one of TaskRunOrg and TaskRunOrgID should be set
	TaskRunOrg string `toml:"task-run-org"`

	// TaskRunOrgID is the org to use for saving task runs and logs
	// task runs and logs.
	// This is ignored if TaskRunInfluxDB is a 1.x database
	// Only one of TaskRunOrg and TaskRunOrgID should be set
	TaskRunOrgID string `toml:"task-run-orgid"`

	// TaskRunMeasurement is the measurement used for saving task runs
	// and logs.
	// The defaults is "runs"
	TaskRunMeasurement string `toml:"task-run-measurement"`

	// Secrets is the kapacitor provider for secrets as described at
	// https://docs.influxdata.com/influxdb/v2.0/security/secrets/
	Secrets map[string]string `toml:"secrets"`
}

func NewConfig

func NewConfig() Config

func (Config) Validate

func (c Config) Validate() error

Directories

Path Synopsis
Package options provides ways to extract the task-related options from a Flux script.
Package options provides ways to extract the task-related options from a Flux script.
Package servicetest provides tests to ensure that implementations of platform/task/backend.Store and platform/task/backend.LogReader meet the requirements of influxdb.TaskService.
Package servicetest provides tests to ensure that implementations of platform/task/backend.Store and platform/task/backend.LogReader meet the requirements of influxdb.TaskService.

Jump to

Keyboard shortcuts

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