Documentation
¶
Index ¶
- func NewCheck(name, targetType, comment string, optional bool) ks.Check
- type Checks
- func (c *Checks) All() []ks.Check
- func (c *Checks) CronJobs() map[string]CronJobCheck
- func (c *Checks) Deployments() map[string]DeploymentCheck
- func (c *Checks) HorizontalPodAutoscalers() map[string]HorizontalPodAutoscalerCheck
- func (c *Checks) Ingresses() map[string]IngressCheck
- func (c *Checks) Metas() map[string]MetaCheck
- func (c *Checks) NetworkPolicies() map[string]NetworkPolicyCheck
- func (c *Checks) PodDisruptionBudgets() map[string]PodDisruptionBudgetCheck
- func (c *Checks) Pods() map[string]PodCheck
- func (c *Checks) RegisterCronJobCheck(name, comment string, fn CronJobCheckFn)
- func (c *Checks) RegisterDeploymentCheck(name, comment string, fn DeploymentCheckFn)
- func (c *Checks) RegisterHorizontalPodAutoscalerCheck(name, comment string, fn HorizontalPodAutoscalerCheckFn)
- func (c *Checks) RegisterIngressCheck(name, comment string, fn IngressCheckFn)
- func (c *Checks) RegisterMetaCheck(name, comment string, fn MetaCheckFn)
- func (c *Checks) RegisterNetworkPolicyCheck(name, comment string, fn NetworkPolicyCheckFn)
- func (c *Checks) RegisterOptionalCronJobCheck(name, comment string, fn CronJobCheckFn)
- func (c *Checks) RegisterOptionalDeploymentCheck(name, comment string, fn DeploymentCheckFn)
- func (c *Checks) RegisterOptionalHorizontalPodAutoscalerCheck(name, comment string, fn HorizontalPodAutoscalerCheckFn)
- func (c *Checks) RegisterOptionalIngressCheck(name, comment string, fn IngressCheckFn)
- func (c *Checks) RegisterOptionalMetaCheck(name, comment string, fn MetaCheckFn)
- func (c *Checks) RegisterOptionalNetworkPolicyCheck(name, comment string, fn NetworkPolicyCheckFn)
- func (c *Checks) RegisterOptionalPodCheck(name, comment string, fn PodCheckFn)
- func (c *Checks) RegisterOptionalServiceCheck(name, comment string, fn ServiceCheckFn)
- func (c *Checks) RegisterOptionalStatefulSetCheck(name, comment string, fn StatefulSetCheckFn)
- func (c *Checks) RegisterPodCheck(name, comment string, fn PodCheckFn)
- func (c *Checks) RegisterPodDisruptionBudgetCheck(name, comment string, fn PodDisruptionBudgetCheckFn)
- func (c *Checks) RegisterServiceCheck(name, comment string, fn ServiceCheckFn)
- func (c *Checks) RegisterStatefulSetCheck(name, comment string, fn StatefulSetCheckFn)
- func (c *Checks) Services() map[string]ServiceCheck
- func (c *Checks) StatefulSets() map[string]StatefulSetCheck
- type CronJobCheck
- type CronJobCheckFn
- type DeploymentCheck
- type DeploymentCheckFn
- type HorizontalPodAutoscalerCheck
- type HorizontalPodAutoscalerCheckFn
- type IngressCheck
- type IngressCheckFn
- type MetaCheck
- type MetaCheckFn
- type NetworkPolicyCheck
- type NetworkPolicyCheckFn
- type PodCheck
- type PodCheckFn
- type PodDisruptionBudgetCheck
- type PodDisruptionBudgetCheckFn
- type ServiceCheck
- type ServiceCheckFn
- type StatefulSetCheck
- type StatefulSetCheckFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Checks ¶
type Checks struct {
// contains filtered or unexported fields
}
func New ¶
func New(cnf config.Configuration) *Checks
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) NetworkPolicies ¶
func (c *Checks) NetworkPolicies() map[string]NetworkPolicyCheck
func (*Checks) PodDisruptionBudgets ¶ added in v1.13.0
func (c *Checks) PodDisruptionBudgets() map[string]PodDisruptionBudgetCheck
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) RegisterPodDisruptionBudgetCheck ¶ added in v1.13.0
func (c *Checks) RegisterPodDisruptionBudgetCheck(name, comment string, fn PodDisruptionBudgetCheckFn)
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 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(ks.HpaTargeter) scorecard.TestScore
type IngressCheck ¶
type IngressCheck struct { ks.Check Fn IngressCheckFn }
type MetaCheck ¶
type MetaCheck struct { ks.Check Fn MetaCheckFn }
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 PodDisruptionBudgetCheck ¶ added in v1.13.0
type PodDisruptionBudgetCheck struct { ks.Check Fn PodDisruptionBudgetCheckFn }
type PodDisruptionBudgetCheckFn ¶ added in v1.13.0
type PodDisruptionBudgetCheckFn = func(ks.PodDisruptionBudget) scorecard.TestScore
type ServiceCheck ¶
type ServiceCheck struct { ks.Check Fn ServiceCheckFn }
type ServiceCheckFn ¶ added in v1.1.0
type StatefulSetCheck ¶
type StatefulSetCheck struct { ks.Check Fn StatefulSetCheckFn }
type StatefulSetCheckFn ¶ added in v1.1.0
type StatefulSetCheckFn = func(appsv1.StatefulSet) (scorecard.TestScore, error)
Click to show internal directories.
Click to hide internal directories.