Documentation
¶
Index ¶
- type Cache
- type Collector
- type ConfigMap
- type Deployment
- type HorizontalPodAutoscaler
- type Namespace
- type Node
- type PersistentVolume
- type PersistentVolumeClaim
- type Pod
- type Sanitizer
- func NewConfigMap(c *Cache) Sanitizer
- func NewDeployment(c *Cache) Sanitizer
- func NewHorizontalPodAutoscaler(c *Cache) Sanitizer
- func NewNamespace(c *Cache) Sanitizer
- func NewNode(c *Cache) Sanitizer
- func NewPersistentVolume(c *Cache) Sanitizer
- func NewPersistentVolumeClaim(c *Cache) Sanitizer
- func NewPod(c *Cache) Sanitizer
- func NewSecret(c *Cache) Sanitizer
- func NewService(c *Cache) Sanitizer
- func NewServiceAccount(c *Cache) Sanitizer
- func NewStatefulSet(c *Cache) Sanitizer
- type Secret
- type Service
- type ServiceAccouunt
- type StatefulSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶ added in v0.3.5
type Cache struct {
// contains filtered or unexported fields
}
Cache caches commonly used resources.
type Collector ¶
type Collector interface {
MaxSeverity(res string) issues.Level
Outcome() issues.Outcome
}
Collector collects sanitization issues.
type ConfigMap ¶
type ConfigMap struct {
*issues.Collector
*cache.Pod
*cache.ConfigMap
}
ConfigMap represents a configMap sanitizer.
type Deployment ¶
type Deployment struct {
*issues.Collector
*cache.Deployment
*cache.PodsMetrics
*cache.Pod
*config.Config
// contains filtered or unexported fields
}
Deployment represents a Deployment sanitizer.
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct {
*issues.Collector
*cache.HorizontalPodAutoscaler
*cache.Pod
*cache.PodsMetrics
*cache.Deployment
*cache.StatefulSet
*cache.NodesMetrics
*config.Config
}
HorizontalPodAutoscaler represents a HorizontalPodAutoscaler sanitizer.
type Namespace ¶
type Namespace struct {
*issues.Collector
*cache.Namespace
*cache.Pod
}
Namespace represents a Namespace sanitizer.
func (*Namespace) ReferencedNamespaces ¶
func (n *Namespace) ReferencedNamespaces(res map[string]struct{})
ReferencedNamespaces fetch all namespaces referenced by pods.
type Node ¶
type Node struct {
*issues.Collector
*cache.Node
*cache.Pod
*cache.NodesMetrics
*config.Config
}
Node represents a Node sanitizer.
type PersistentVolume ¶
type PersistentVolume struct {
*issues.Collector
*cache.PersistentVolume
*cache.Pod
}
PersistentVolume represents a PersistentVolume sanitizer.
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct {
*issues.Collector
*cache.PersistentVolumeClaim
*cache.Pod
}
PersistentVolumeClaim represents a PersistentVolumeClaim sanitizer.
type Pod ¶
type Pod struct {
*issues.Collector
*cache.Pod
*cache.PodsMetrics
*config.Config
}
Pod represents a Pod sanitizer.
type Sanitizer ¶
type Sanitizer interface {
Collector
Sanitize(context.Context) error
}
Sanitizer represents a resource sanitizer.
func NewConfigMap ¶
func NewConfigMap(c *Cache) Sanitizer
NewConfigMap return a new ConfigMap sanitizer.
func NewDeployment ¶
func NewDeployment(c *Cache) Sanitizer
NewDeployment return a new Deployment sanitizer.
func NewHorizontalPodAutoscaler ¶
func NewHorizontalPodAutoscaler(c *Cache) Sanitizer
NewHorizontalPodAutoscaler return a new HorizontalPodAutoscaler sanitizer.
func NewNamespace ¶
func NewNamespace(c *Cache) Sanitizer
NewNamespace return a new Namespace sanitizer.
func NewPersistentVolume ¶
func NewPersistentVolume(c *Cache) Sanitizer
NewPersistentVolume return a new PersistentVolume sanitizer.
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(c *Cache) Sanitizer
NewPersistentVolumeClaim return a new PersistentVolumeClaim sanitizer.
func NewServiceAccount ¶
func NewServiceAccount(c *Cache) Sanitizer
NewServiceAccount return a new ServiceAccouunt sanitizer.
func NewStatefulSet ¶
func NewStatefulSet(c *Cache) Sanitizer
NewStatefulSet return a new StatefulSet sanitizer.
type Secret ¶
type Secret struct {
*issues.Collector
*cache.Secret
*cache.Pod
*cache.ServiceAccount
}
Secret represents a Secret sanitizer.
type Service ¶
type Service struct {
*issues.Collector
*cache.Service
*cache.Pod
*cache.Endpoints
}
Service represents a Service sanitizer.
type ServiceAccouunt ¶
type ServiceAccouunt struct {
*issues.Collector
*cache.ServiceAccount
*cache.Pod
*cache.ClusterRoleBinding
*cache.RoleBinding
}
ServiceAccouunt represents a ServiceAccouunt sanitizer.
type StatefulSet ¶
type StatefulSet struct {
*issues.Collector
*cache.Pod
*cache.StatefulSet
*cache.PodsMetrics
*config.Config
}
StatefulSet represents a StatefulSet sanitizer.