config

package
v0.0.0-...-b24d43e Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 2 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 {
	Watchdog *Watchdog `yaml:"watchdog"`
	Probes   []*Probe  `yaml:"probes"`
}

func ReadConfig

func ReadConfig(data []byte) (*Config, error)

type Probe

type Probe struct {
	// Actions
	Exec *ProbeExec `yaml:"exec"`

	FailureThreshold    int `yaml:"failureThreshold"`
	StartupThreshold    int `yaml:"startupThreshold"`
	InitialDelaySeconds int `yaml:"initialDelaySeconds"`
	PeriodSeconds       int `yaml:"periodSeconds"`
	TimeoutSeconds      int `yaml:"timeoutSeconds"`
}

Probe mimicks the Probe type in k8s core/v1.

type ProbeExec

type ProbeExec struct {
	Command []string `yaml:"command"`
}

type Watchdog

type Watchdog struct {
	Device          string `yaml:"device"`
	IntervalSeconds int    `yaml:"intervalSeconds"`
}

Jump to

Keyboard shortcuts

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