checks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCheck

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

Types

type Checks

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

func New

func New() *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) 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 func(batchv1beta1.CronJob) scorecard.TestScore)

func (*Checks) RegisterDeploymentCheck

func (c *Checks) RegisterDeploymentCheck(name, comment string, fn func(appsv1.Deployment) scorecard.TestScore)

func (*Checks) RegisterIngressCheck

func (c *Checks) RegisterIngressCheck(name, comment string, fn func(extensionsv1beta1.Ingress) scorecard.TestScore)

func (*Checks) RegisterMetaCheck

func (c *Checks) RegisterMetaCheck(name, comment string, fn func(metav1.TypeMeta) scorecard.TestScore)

func (*Checks) RegisterNetworkPolicyCheck

func (c *Checks) RegisterNetworkPolicyCheck(name, comment string, fn func(networkingv1.NetworkPolicy) scorecard.TestScore)

func (*Checks) RegisterPodCheck

func (c *Checks) RegisterPodCheck(name, comment string, fn func(corev1.PodTemplateSpec) scorecard.TestScore)

func (*Checks) RegisterServiceCheck

func (c *Checks) RegisterServiceCheck(name, comment string, fn func(corev1.Service) scorecard.TestScore)

func (*Checks) RegisterStatefulSetCheck

func (c *Checks) RegisterStatefulSetCheck(name, comment string, fn func(appsv1.StatefulSet) scorecard.TestScore)

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 func(batchv1beta1.CronJob) scorecard.TestScore
}

type DeploymentCheck

type DeploymentCheck struct {
	ks.Check
	Fn func(appsv1.Deployment) scorecard.TestScore
}

type IngressCheck

type IngressCheck struct {
	ks.Check
	Fn func(extensionsv1beta1.Ingress) scorecard.TestScore
}

type MetaCheck

type MetaCheck struct {
	ks.Check
	Fn func(metav1.TypeMeta) scorecard.TestScore
}

type NetworkPolicyCheck

type NetworkPolicyCheck struct {
	ks.Check
	Fn func(networkingv1.NetworkPolicy) scorecard.TestScore
}

type PodCheck

type PodCheck struct {
	ks.Check
	Fn func(corev1.PodTemplateSpec) scorecard.TestScore
}

type ServiceCheck

type ServiceCheck struct {
	ks.Check
	Fn func(corev1.Service) scorecard.TestScore
}

type StatefulSetCheck

type StatefulSetCheck struct {
	ks.Check
	Fn func(appsv1.StatefulSet) scorecard.TestScore
}

Jump to

Keyboard shortcuts

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