Documentation
¶
Index ¶
- func Scrubers() map[internal.R]ScrubFn
- type Cache
- type Cluster
- type ClusterRole
- type ClusterRoleBinding
- type Collector
- type ConfigMap
- type CronJob
- type DaemonSet
- type Deployment
- type Gateway
- type GatewayClass
- type HTTPRoute
- type HorizontalPodAutoscaler
- type Ingress
- type Job
- type Linter
- func NewCluster(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewClusterRole(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewClusterRoleBinding(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewConfigMap(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewCronJob(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewDaemonSet(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewDeployment(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewGateway(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewGatewayClass(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewHTTPRoute(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewHorizontalPodAutoscaler(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewIngress(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewJob(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewNamespace(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewNetworkPolicy(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewNode(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewPersistentVolume(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewPersistentVolumeClaim(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewPod(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewPodDisruptionBudget(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewReplicaSet(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewRole(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewRoleBinding(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewSecret(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewService(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewServiceAccount(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- func NewStatefulSet(ctx context.Context, c *Cache, codes *issues.Codes) Linter
- type LoaderFn
- type Namespace
- type NetworkPolicy
- type Node
- type PersistentVolume
- type PersistentVolumeClaim
- type Pod
- type PodDisruptionBudget
- type Preloads
- type ReplicaSet
- type Role
- type RoleBinding
- type ScrubFn
- type Scrubs
- type Secret
- type Service
- type ServiceAccount
- type StatefulSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶ added in v0.3.5
type Cache struct { Config *config.Config DB *db.DB Loader *db.Loader // contains filtered or unexported fields }
Cache tracks commonly used resources.
type Cluster ¶ added in v0.4.0
type Cluster struct { *issues.Collector *cache.Cluster *config.Config // contains filtered or unexported fields }
Cluster represents a Cluster scruber.
func (*Cluster) HasMetrics ¶ added in v0.11.2
type ClusterRole ¶ added in v0.6.0
ClusterRole represents a ClusterRole scruber.
func (*ClusterRole) Lint ¶ added in v0.20.0
func (s *ClusterRole) Lint(ctx context.Context) error
Lint all available ClusterRoles.
func (*ClusterRole) Preloads ¶ added in v0.20.0
func (s *ClusterRole) Preloads() Preloads
type ClusterRoleBinding ¶ added in v0.6.0
ClusterRoleBinding represents a ClusterRoleBinding scruber.
func (*ClusterRoleBinding) Lint ¶ added in v0.20.0
func (s *ClusterRoleBinding) Lint(ctx context.Context) error
Lint all available ClusterRoleBindings.
func (*ClusterRoleBinding) Preloads ¶ added in v0.20.0
func (s *ClusterRoleBinding) Preloads() Preloads
type ConfigMap ¶
ConfigMap represents a configMap scruber.
type CronJob ¶ added in v0.20.0
CronJob represents a CronJob scruber.
type DaemonSet ¶ added in v0.4.0
DaemonSet represents a DaemonSet scruber.
type Deployment ¶
Deployment represents a Deployment scruber.
func (*Deployment) Lint ¶ added in v0.20.0
func (s *Deployment) Lint(ctx context.Context) error
Lint all available Deployments.
func (*Deployment) Preloads ¶ added in v0.20.0
func (s *Deployment) Preloads() Preloads
type Gateway ¶ added in v0.20.0
Gateway represents a Gateway scruber.
type GatewayClass ¶ added in v0.20.0
GatewayClass represents a GatewayClass scruber.
func (*GatewayClass) Lint ¶ added in v0.20.0
func (s *GatewayClass) Lint(ctx context.Context) error
Lint all available GatewayClass.
func (*GatewayClass) Preloads ¶ added in v0.20.0
func (s *GatewayClass) Preloads() Preloads
type HTTPRoute ¶ added in v0.20.0
HTTPRoute represents a HTTPRoute scruber.
type HorizontalPodAutoscaler ¶
HorizontalPodAutoscaler represents a HorizontalPodAutoscaler scruber.
func (*HorizontalPodAutoscaler) Lint ¶ added in v0.20.0
func (s *HorizontalPodAutoscaler) Lint(ctx context.Context) error
Lint all available HorizontalPodAutoscalers.
func (*HorizontalPodAutoscaler) Preloads ¶ added in v0.20.0
func (s *HorizontalPodAutoscaler) Preloads() Preloads
type Ingress ¶ added in v0.4.0
Ingress represents a Ingress scruber.
type Job ¶ added in v0.20.0
Job represents a Job scruber.
type Linter ¶ added in v0.20.0
type Linter interface { // Collector tracks issues. Collector // Lint runs checks on a resource. Lint(context.Context) error // Preloads Preloads resource requirements. Preloads() Preloads }
Linter represents a resource linter.
func NewCluster ¶ added in v0.4.0
NewCluster returns a new instance.
func NewClusterRole ¶ added in v0.6.0
NewClusterRole returns a new instance.
func NewClusterRoleBinding ¶ added in v0.6.0
NewClusterRoleBinding returns a new instance.
func NewConfigMap ¶
NewConfigMap returns a new instance.
func NewCronJob ¶ added in v0.20.0
NewCronJob return a new instance.
func NewDaemonSet ¶ added in v0.4.0
NewDaemonSet return a new instance.
func NewDeployment ¶
NewDeployment returns a new instance.
func NewGateway ¶ added in v0.20.0
NewGateway return a new instance.
func NewGatewayClass ¶ added in v0.20.0
NewGatewayClass return a new instance.
func NewHTTPRoute ¶ added in v0.20.0
NewHTTPRoute return a new instance.
func NewHorizontalPodAutoscaler ¶
NewHorizontalPodAutoscaler returns a new instance.
func NewIngress ¶ added in v0.4.0
NewIngress return a new instance.
func NewNamespace ¶
NewNamespace returns a new instance.
func NewNetworkPolicy ¶ added in v0.4.0
NewNetworkPolicy return a new instance.
func NewPersistentVolume ¶
NewPersistentVolume return a new instance.
func NewPersistentVolumeClaim ¶
NewPersistentVolumeClaim returns a new instance.
func NewPodDisruptionBudget ¶ added in v0.3.10
NewPodDisruptionBudget return a new PodDisruptionBudget scruber.
func NewReplicaSet ¶ added in v0.4.0
NewReplicaSet returns a new instance.
func NewRoleBinding ¶ added in v0.6.0
NewRoleBinding returns a new instance.
func NewService ¶
NewService return a new instance.
func NewServiceAccount ¶
NewServiceAccount returns a new instance.
type Namespace ¶
Namespace represents a Namespace scruber.
type NetworkPolicy ¶ added in v0.4.0
NetworkPolicy represents a NetworkPolicy scruber.
func (*NetworkPolicy) Lint ¶ added in v0.20.0
func (s *NetworkPolicy) Lint(ctx context.Context) error
Lint all available NetworkPolicies.
func (*NetworkPolicy) Preloads ¶ added in v0.20.0
func (s *NetworkPolicy) Preloads() Preloads
type Node ¶
Node represents a Node scruber.
type PersistentVolume ¶
PersistentVolume represents a PersistentVolume scruber.
func (*PersistentVolume) Lint ¶ added in v0.20.0
func (s *PersistentVolume) Lint(ctx context.Context) error
Lint all available PersistentVolumes.
func (*PersistentVolume) Preloads ¶ added in v0.20.0
func (s *PersistentVolume) Preloads() Preloads
type PersistentVolumeClaim ¶
PersistentVolumeClaim represents a PersistentVolumeClaim scruber.
func (*PersistentVolumeClaim) Lint ¶ added in v0.20.0
func (s *PersistentVolumeClaim) Lint(ctx context.Context) error
Lint all available PersistentVolumeClaims.
func (*PersistentVolumeClaim) Preloads ¶ added in v0.20.0
func (s *PersistentVolumeClaim) Preloads() Preloads
type Pod ¶
Pod represents a Pod scruber.
type PodDisruptionBudget ¶ added in v0.3.10
PodDisruptionBudget represents a pdb scruber.
func (*PodDisruptionBudget) Lint ¶ added in v0.20.0
func (s *PodDisruptionBudget) Lint(ctx context.Context) error
Lint all available PodDisruptionBudgets.
func (*PodDisruptionBudget) Preloads ¶ added in v0.20.0
func (s *PodDisruptionBudget) Preloads() Preloads
type ReplicaSet ¶ added in v0.4.0
ReplicaSet represents a ReplicaSet scruber.
func (*ReplicaSet) Lint ¶ added in v0.20.0
func (s *ReplicaSet) Lint(ctx context.Context) error
Lint all available ReplicaSets.
func (*ReplicaSet) Preloads ¶ added in v0.20.0
func (s *ReplicaSet) Preloads() Preloads
type Role ¶ added in v0.6.0
Role represents a Role scruber.
type RoleBinding ¶ added in v0.6.0
RoleBinding represents a RoleBinding scruber.
func (*RoleBinding) Lint ¶ added in v0.20.0
func (s *RoleBinding) Lint(ctx context.Context) error
Lint all available RoleBindings.
func (*RoleBinding) Preloads ¶ added in v0.20.0
func (s *RoleBinding) Preloads() Preloads
type Secret ¶
Secret represents a Secret scruber.
type Service ¶
Service represents a Service scruber.
type ServiceAccount ¶ added in v0.4.0
ServiceAccount represents a ServiceAccount scruber.
func (*ServiceAccount) Lint ¶ added in v0.20.0
func (s *ServiceAccount) Lint(ctx context.Context) error
Lint all available ServiceAccounts.
func (*ServiceAccount) Preloads ¶ added in v0.20.0
func (s *ServiceAccount) Preloads() Preloads
type StatefulSet ¶
StatefulSet represents a StatefulSet scruber.
func (*StatefulSet) Lint ¶ added in v0.20.0
func (s *StatefulSet) Lint(ctx context.Context) error
Lint all available StatefulSets.
func (*StatefulSet) Preloads ¶ added in v0.20.0
func (s *StatefulSet) Preloads() Preloads