checks

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheck

func NewCheck(name, targetType, comment string, optional bool) ks.Check

Types

type Checks

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

func New

func New(cnf config.Configuration) *Checks

func (*Checks) All

func (c *Checks) All() []ks.Check

func (*Checks) CronJobs

func (c *Checks) CronJobs() map[string]CronJobCheck

func (*Checks) Deployments

func (c *Checks) Deployments() map[string]DeploymentCheck

func (*Checks) HorizontalPodAutoscalers added in v1.2.0

func (c *Checks) HorizontalPodAutoscalers() map[string]HorizontalPodAutoscalerCheck

func (*Checks) Ingresses

func (c *Checks) Ingresses() map[string]IngressCheck

func (*Checks) Metas

func (c *Checks) Metas() map[string]MetaCheck

func (*Checks) NetworkPolicies

func (c *Checks) NetworkPolicies() map[string]NetworkPolicyCheck

func (*Checks) Pods

func (c *Checks) Pods() map[string]PodCheck

func (*Checks) RegisterCronJobCheck

func (c *Checks) RegisterCronJobCheck(name, comment string, fn CronJobCheckFn)

func (*Checks) RegisterDeploymentCheck

func (c *Checks) RegisterDeploymentCheck(name, comment string, fn DeploymentCheckFn)

func (*Checks) RegisterHorizontalPodAutoscalerCheck added in v1.2.0

func (c *Checks) RegisterHorizontalPodAutoscalerCheck(name, comment string, fn HorizontalPodAutoscalerCheckFn)

func (*Checks) RegisterIngressCheck

func (c *Checks) RegisterIngressCheck(name, comment string, fn IngressCheckFn)

func (*Checks) RegisterMetaCheck

func (c *Checks) RegisterMetaCheck(name, comment string, fn MetaCheckFn)

func (*Checks) RegisterNetworkPolicyCheck

func (c *Checks) RegisterNetworkPolicyCheck(name, comment string, fn NetworkPolicyCheckFn)

func (*Checks) RegisterOptionalCronJobCheck added in v1.1.0

func (c *Checks) RegisterOptionalCronJobCheck(name, comment string, fn CronJobCheckFn)

func (*Checks) RegisterOptionalDeploymentCheck added in v1.1.0

func (c *Checks) RegisterOptionalDeploymentCheck(name, comment string, fn DeploymentCheckFn)

func (*Checks) RegisterOptionalHorizontalPodAutoscalerCheck added in v1.2.0

func (c *Checks) RegisterOptionalHorizontalPodAutoscalerCheck(name, comment string, fn HorizontalPodAutoscalerCheckFn)

func (*Checks) RegisterOptionalIngressCheck added in v1.1.0

func (c *Checks) RegisterOptionalIngressCheck(name, comment string, fn IngressCheckFn)

func (*Checks) RegisterOptionalMetaCheck added in v1.1.0

func (c *Checks) RegisterOptionalMetaCheck(name, comment string, fn MetaCheckFn)

func (*Checks) RegisterOptionalNetworkPolicyCheck added in v1.1.0

func (c *Checks) RegisterOptionalNetworkPolicyCheck(name, comment string, fn NetworkPolicyCheckFn)

func (*Checks) RegisterOptionalPodCheck added in v1.1.0

func (c *Checks) RegisterOptionalPodCheck(name, comment string, fn PodCheckFn)

func (*Checks) RegisterOptionalServiceCheck added in v1.1.0

func (c *Checks) RegisterOptionalServiceCheck(name, comment string, fn ServiceCheckFn)

func (*Checks) RegisterOptionalStatefulSetCheck added in v1.1.0

func (c *Checks) RegisterOptionalStatefulSetCheck(name, comment string, fn StatefulSetCheckFn)

func (*Checks) RegisterPodCheck

func (c *Checks) RegisterPodCheck(name, comment string, fn PodCheckFn)

func (*Checks) RegisterServiceCheck

func (c *Checks) RegisterServiceCheck(name, comment string, fn ServiceCheckFn)

func (*Checks) RegisterStatefulSetCheck

func (c *Checks) RegisterStatefulSetCheck(name, comment string, fn StatefulSetCheckFn)

func (*Checks) Services

func (c *Checks) Services() map[string]ServiceCheck

func (*Checks) StatefulSets

func (c *Checks) StatefulSets() map[string]StatefulSetCheck

type CronJobCheck

type CronJobCheck struct {
	ks.Check
	Fn CronJobCheckFn
}

type CronJobCheckFn added in v1.1.0

type CronJobCheckFn = func(batchv1beta1.CronJob) scorecard.TestScore

type DeploymentCheck

type DeploymentCheck struct {
	ks.Check
	Fn DeploymentCheckFn
}

type DeploymentCheckFn added in v1.1.0

type DeploymentCheckFn = func(appsv1.Deployment) (scorecard.TestScore, error)

type HorizontalPodAutoscalerCheck added in v1.2.0

type HorizontalPodAutoscalerCheck struct {
	ks.Check
	Fn HorizontalPodAutoscalerCheckFn
}

type HorizontalPodAutoscalerCheckFn added in v1.2.0

type HorizontalPodAutoscalerCheckFn = func(autoscalingv1.HorizontalPodAutoscaler) scorecard.TestScore

type IngressCheck

type IngressCheck struct {
	ks.Check
	Fn IngressCheckFn
}

type IngressCheckFn added in v1.1.0

type IngressCheckFn = func(extensionsv1beta1.Ingress) scorecard.TestScore

type MetaCheck

type MetaCheck struct {
	ks.Check
	Fn MetaCheckFn
}

type MetaCheckFn added in v1.1.0

type MetaCheckFn = func(ks.BothMeta) scorecard.TestScore

type NetworkPolicyCheck

type NetworkPolicyCheck struct {
	ks.Check
	Fn NetworkPolicyCheckFn
}

type NetworkPolicyCheckFn added in v1.1.0

type NetworkPolicyCheckFn = func(networkingv1.NetworkPolicy) scorecard.TestScore

type PodCheck

type PodCheck struct {
	ks.Check
	Fn PodCheckFn
}

type PodCheckFn added in v1.1.0

type ServiceCheck

type ServiceCheck struct {
	ks.Check
	Fn ServiceCheckFn
}

type ServiceCheckFn added in v1.1.0

type ServiceCheckFn = func(corev1.Service) scorecard.TestScore

type StatefulSetCheck

type StatefulSetCheck struct {
	ks.Check
	Fn StatefulSetCheckFn
}

type StatefulSetCheckFn added in v1.1.0

type StatefulSetCheckFn = func(appsv1.StatefulSet) (scorecard.TestScore, error)

Jump to

Keyboard shortcuts

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