Documentation ¶
Index ¶
- func NewCheck(name, targetType, comment string, optional bool) ks.Check
- type CheckFunc
- type Checks
- func (c *Checks) All() []ks.Check
- func (c *Checks) CronJobs() map[string]GenCheck[ks.CronJob]
- func (c *Checks) Deployments() map[string]GenCheck[appsv1.Deployment]
- func (c *Checks) HorizontalPodAutoscalers() map[string]GenCheck[ks.HpaTargeter]
- func (c *Checks) Ingresses() map[string]GenCheck[ks.Ingress]
- func (c *Checks) Metas() map[string]GenCheck[ks.BothMeta]
- func (c *Checks) NetworkPolicies() map[string]GenCheck[networkingv1.NetworkPolicy]
- func (c *Checks) PodDisruptionBudgets() map[string]GenCheck[ks.PodDisruptionBudget]
- func (c *Checks) Pods() map[string]GenCheck[ks.PodSpecer]
- func (c *Checks) RegisterCronJobCheck(name, comment string, fn CheckFunc[ks.CronJob])
- func (c *Checks) RegisterDeploymentCheck(name, comment string, fn CheckFunc[appsv1.Deployment])
- func (c *Checks) RegisterHorizontalPodAutoscalerCheck(name, comment string, fn CheckFunc[ks.HpaTargeter])
- func (c *Checks) RegisterIngressCheck(name, comment string, fn CheckFunc[ks.Ingress])
- func (c *Checks) RegisterMetaCheck(name, comment string, fn CheckFunc[ks.BothMeta])
- func (c *Checks) RegisterNetworkPolicyCheck(name, comment string, fn CheckFunc[networkingv1.NetworkPolicy])
- func (c *Checks) RegisterOptionalCronJobCheck(name, comment string, fn CheckFunc[ks.CronJob])
- func (c *Checks) RegisterOptionalDeploymentCheck(name, comment string, fn CheckFunc[appsv1.Deployment])
- func (c *Checks) RegisterOptionalHorizontalPodAutoscalerCheck(name, comment string, fn CheckFunc[ks.HpaTargeter])
- func (c *Checks) RegisterOptionalIngressCheck(name, comment string, fn CheckFunc[ks.Ingress])
- func (c *Checks) RegisterOptionalMetaCheck(name, comment string, fn CheckFunc[ks.BothMeta])
- func (c *Checks) RegisterOptionalNetworkPolicyCheck(name, comment string, fn CheckFunc[networkingv1.NetworkPolicy])
- func (c *Checks) RegisterOptionalPodCheck(name, comment string, fn CheckFunc[ks.PodSpecer])
- func (c *Checks) RegisterOptionalServiceCheck(name, comment string, fn CheckFunc[corev1.Service])
- func (c *Checks) RegisterOptionalStatefulSetCheck(name, comment string, fn CheckFunc[appsv1.StatefulSet])
- func (c *Checks) RegisterPodCheck(name, comment string, fn CheckFunc[ks.PodSpecer])
- func (c *Checks) RegisterPodDisruptionBudgetCheck(name, comment string, fn CheckFunc[ks.PodDisruptionBudget])
- func (c *Checks) RegisterServiceCheck(name, comment string, fn CheckFunc[corev1.Service])
- func (c *Checks) RegisterStatefulSetCheck(name, comment string, fn CheckFunc[appsv1.StatefulSet])
- func (c *Checks) Services() map[string]GenCheck[corev1.Service]
- func (c *Checks) StatefulSets() map[string]GenCheck[appsv1.StatefulSet]
- type GenCheck
- type MetaCheck
- type MetaCheckFn
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) Deployments ¶
func (c *Checks) Deployments() map[string]GenCheck[appsv1.Deployment]
func (*Checks) HorizontalPodAutoscalers ¶
func (c *Checks) HorizontalPodAutoscalers() map[string]GenCheck[ks.HpaTargeter]
func (*Checks) NetworkPolicies ¶
func (c *Checks) NetworkPolicies() map[string]GenCheck[networkingv1.NetworkPolicy]
func (*Checks) PodDisruptionBudgets ¶
func (c *Checks) PodDisruptionBudgets() map[string]GenCheck[ks.PodDisruptionBudget]
func (*Checks) RegisterCronJobCheck ¶
func (*Checks) RegisterDeploymentCheck ¶
func (c *Checks) RegisterDeploymentCheck(name, comment string, fn CheckFunc[appsv1.Deployment])
func (*Checks) RegisterHorizontalPodAutoscalerCheck ¶
func (c *Checks) RegisterHorizontalPodAutoscalerCheck(name, comment string, fn CheckFunc[ks.HpaTargeter])
func (*Checks) RegisterIngressCheck ¶
func (*Checks) RegisterMetaCheck ¶
func (*Checks) RegisterNetworkPolicyCheck ¶
func (c *Checks) RegisterNetworkPolicyCheck(name, comment string, fn CheckFunc[networkingv1.NetworkPolicy])
func (*Checks) RegisterOptionalCronJobCheck ¶
func (*Checks) RegisterOptionalDeploymentCheck ¶
func (c *Checks) RegisterOptionalDeploymentCheck(name, comment string, fn CheckFunc[appsv1.Deployment])
func (*Checks) RegisterOptionalHorizontalPodAutoscalerCheck ¶
func (c *Checks) RegisterOptionalHorizontalPodAutoscalerCheck(name, comment string, fn CheckFunc[ks.HpaTargeter])
func (*Checks) RegisterOptionalIngressCheck ¶
func (*Checks) RegisterOptionalMetaCheck ¶
func (*Checks) RegisterOptionalNetworkPolicyCheck ¶
func (c *Checks) RegisterOptionalNetworkPolicyCheck(name, comment string, fn CheckFunc[networkingv1.NetworkPolicy])
func (*Checks) RegisterOptionalPodCheck ¶
func (*Checks) RegisterOptionalServiceCheck ¶
func (*Checks) RegisterOptionalStatefulSetCheck ¶
func (c *Checks) RegisterOptionalStatefulSetCheck(name, comment string, fn CheckFunc[appsv1.StatefulSet])
func (*Checks) RegisterPodCheck ¶
func (*Checks) RegisterPodDisruptionBudgetCheck ¶
func (c *Checks) RegisterPodDisruptionBudgetCheck(name, comment string, fn CheckFunc[ks.PodDisruptionBudget])
func (*Checks) RegisterServiceCheck ¶
func (*Checks) RegisterStatefulSetCheck ¶
func (c *Checks) RegisterStatefulSetCheck(name, comment string, fn CheckFunc[appsv1.StatefulSet])
func (*Checks) StatefulSets ¶
func (c *Checks) StatefulSets() map[string]GenCheck[appsv1.StatefulSet]
type MetaCheck ¶
type MetaCheck struct { ks.Check Fn MetaCheckFn }
Click to show internal directories.
Click to hide internal directories.