checker

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker interface {
	Check(printer *pritty.Printer) error
}

func NewDaemonSetChecker

func NewDaemonSetChecker(opts *Options) Checker

NewDaemonSetChecker creates Statefulset Checkr resource.

func NewDeploymentChecker

func NewDeploymentChecker(opts *Options) Checker

NewDeploymentChecker creates Deployment Checkr resource.

func NewStatefulSetChecker

func NewStatefulSetChecker(opts *Options) Checker

NewStatefulSetChecker creates Statefulset Checker resource.

type DaemonSetChecker

type DaemonSetChecker struct {
	*Options
}

DaemonSetChecker checks a target statefulset resource.

func (DaemonSetChecker) Check

func (dsc DaemonSetChecker) Check(printer *pritty.Printer) error

type DeploymentChecker

type DeploymentChecker struct {
	*Options
}

DeploymentChecker checks a target deployment resource.

func (DeploymentChecker) Check

func (dc DeploymentChecker) Check(printer *pritty.Printer) error

type Options

type Options struct {
	Target types.NamespacedName

	*kubernetes.Clientset
}

Options checks a target resource.

func NewOptions

func NewOptions(target types.NamespacedName, clientset *kubernetes.Clientset) *Options

NewOptions creates Checkr resource.

type StatefulSetChecker

type StatefulSetChecker struct {
	*Options
}

StatefulSetChecker checks a target statefulset resource.

func (*StatefulSetChecker) Check

func (ssc *StatefulSetChecker) Check(printer *pritty.Printer) error

Jump to

Keyboard shortcuts

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