componentStatus

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package componentStatus implements a componentstatus checker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Errors           []string
	FailureTimeStamp map[string]time.Time
	MaxTimeInFailure float64 // TODO - make configurable
	// contains filtered or unexported fields
}

Checker validates componentstatus objects within the cluster.

func New

func New() *Checker

New returns a new Checker

func (*Checker) CheckNamespace

func (csc *Checker) CheckNamespace() string

CheckNamespace returns the namespace of this checker

func (*Checker) CurrentStatus

func (csc *Checker) CurrentStatus() (bool, []string)

CurrentStatus returns the status of the check as of right now

func (*Checker) Interval

func (csc *Checker) Interval() time.Duration

Interval returns the interval at which this check runs

func (*Checker) Name

func (csc *Checker) Name() string

Name returns the name of this checker

func (*Checker) Run

func (csc *Checker) Run(client *kubernetes.Clientset) error

Run implements the entrypoint for check execution

func (*Checker) Shutdown

func (csc *Checker) Shutdown() error

Shutdown is implemented to satisfy the KuberhealthyCheck interface, but no action is necessary.

func (*Checker) Timeout

func (csc *Checker) Timeout() time.Duration

Timeout returns the maximum run time for this check before it times out

Jump to

Keyboard shortcuts

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