nodeexporterdown

package
v0.0.0-...-fe370f2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RunbookID = "node-exporter-is-down"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Logger    micrologger.Logger
	K8sClient kubernetes.Interface

	Input Input
}

type Input

type Input map[string]string

type Runbook

type Runbook struct {
	// contains filtered or unexported fields
}

func NewRunbook

func NewRunbook(config Config) (*Runbook, error)

func (*Runbook) Apply

func (r *Runbook) Apply() error

func (*Runbook) FindProblem

func (r *Runbook) FindProblem() ([]problem.Kind, error)

func (*Runbook) GetID

func (r *Runbook) GetID() string

func (*Runbook) GetSourceURL

func (r *Runbook) GetSourceURL() string

func (*Runbook) Test

func (r *Runbook) Test() (bool, error)

Jump to

Keyboard shortcuts

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