Documentation
¶
Index ¶
- type Cache
- type Cluster
- type ClusterRole
- type ClusterRoleBinding
- type Collector
- type ConfigMap
- type DaemonSet
- type Deployment
- type HorizontalPodAutoscaler
- type Ingress
- type Namespace
- type NetworkPolicy
- type Node
- type PersistentVolume
- type PersistentVolumeClaim
- type Pod
- type PodDisruptionBudget
- type PodSecurityPolicy
- type ReplicaSet
- type Role
- type RoleBinding
- type Sanitizer
- func NewCluster(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewClusterRole(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewClusterRoleBinding(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewConfigMap(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewDaemonSet(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewDeployment(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewHorizontalPodAutoscaler(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewIngress(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewNamespace(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewNetworkPolicy(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewNode(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewPersistentVolume(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewPersistentVolumeClaim(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewPod(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewPodDisruptionBudget(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewPodSecurityPolicy(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewReplicaSet(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewRole(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewRoleBinding(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewSecret(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewService(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewServiceAccount(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- func NewStatefulSet(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
- type Secret
- type Service
- type ServiceAccount
- 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 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.
type ClusterRole ¶ added in v0.6.0
type ClusterRole struct {
*config.Config
*issues.Collector
*cache.ClusterRole
*cache.ClusterRoleBinding
*cache.RoleBinding
// contains filtered or unexported fields
}
ClusterRole represents a ClusterRole scruber.
type ClusterRoleBinding ¶ added in v0.6.0
type ClusterRoleBinding struct {
*config.Config
*issues.Collector
*cache.ClusterRoleBinding
*cache.ClusterRole
*cache.Role
// contains filtered or unexported fields
}
ClusterRoleBinding represents a ClusterRoleBinding scruber.
type Collector ¶
type Collector interface {
MaxSeverity(res string) config.Level
Outcome() issues.Outcome
}
Collector collects sanitization issues.
type ConfigMap ¶
type ConfigMap struct {
*issues.Collector
*cache.Pod
*cache.ConfigMap
}
ConfigMap represents a configMap scruber.
type DaemonSet ¶ added in v0.4.0
type DaemonSet struct {
*issues.Collector
*cache.DaemonSet
*cache.PodsMetrics
*cache.Pod
*config.Config
// contains filtered or unexported fields
}
DaemonSet represents a DaemonSet scruber.
type Deployment ¶
type Deployment struct {
*issues.Collector
*cache.Deployment
*cache.PodsMetrics
*cache.Pod
*config.Config
// contains filtered or unexported fields
}
Deployment represents a Deployment scruber.
type HorizontalPodAutoscaler ¶
type HorizontalPodAutoscaler struct {
*issues.Collector
*cache.HorizontalPodAutoscaler
*cache.Pod
*cache.Node
*cache.PodsMetrics
*cache.NodesMetrics
*cache.Deployment
*cache.StatefulSet
*config.Config
}
HorizontalPodAutoscaler represents a HorizontalPodAutoscaler scruber.
type Ingress ¶ added in v0.4.0
type Ingress struct {
*issues.Collector
*cache.Ingress
*config.Config
// contains filtered or unexported fields
}
Ingress represents a Ingress scruber.
type Namespace ¶
type Namespace struct {
*issues.Collector
*cache.Namespace
*cache.Pod
}
Namespace represents a Namespace scruber.
func (*Namespace) ReferencedNamespaces ¶
func (n *Namespace) ReferencedNamespaces(res map[string]struct{})
ReferencedNamespaces fetch all namespaces referenced by pods.
type NetworkPolicy ¶ added in v0.4.0
type NetworkPolicy struct {
*issues.Collector
*cache.NetworkPolicy
*cache.Namespace
*cache.Pod
*config.Config
// contains filtered or unexported fields
}
NetworkPolicy represents a NetworkPolicy scruber.
type Node ¶
type Node struct {
*issues.Collector
*cache.Node
*cache.Pod
*cache.NodesMetrics
*config.Config
}
Node represents a Node scruber.
type PersistentVolume ¶
type PersistentVolume struct {
*issues.Collector
*cache.PersistentVolume
*cache.Pod
}
PersistentVolume represents a PersistentVolume scruber.
type PersistentVolumeClaim ¶
type PersistentVolumeClaim struct {
*issues.Collector
*cache.PersistentVolumeClaim
*cache.Pod
}
PersistentVolumeClaim represents a PersistentVolumeClaim scruber.
type Pod ¶
type Pod struct {
*issues.Collector
*cache.Pod
*cache.PodsMetrics
*config.Config
*cache.PodDisruptionBudget
}
Pod represents a Pod scruber.
type PodDisruptionBudget ¶ added in v0.3.10
type PodDisruptionBudget struct {
*issues.Collector
*cache.Pod
*cache.PodDisruptionBudget
}
PodDisruptionBudget represents a pdb scruber.
type PodSecurityPolicy ¶ added in v0.4.0
type PodSecurityPolicy struct {
*issues.Collector
*cache.PodSecurityPolicy
*config.Config
// contains filtered or unexported fields
}
PodSecurityPolicy represents a PodSecurityPolicy scruber.
type ReplicaSet ¶ added in v0.4.0
type ReplicaSet struct {
*issues.Collector
*cache.ReplicaSet
*cache.Pod
*config.Config
// contains filtered or unexported fields
}
ReplicaSet represents a ReplicaSet scruber.
type Role ¶ added in v0.6.0
type Role struct {
*config.Config
*issues.Collector
*cache.Role
*cache.ClusterRoleBinding
*cache.RoleBinding
// contains filtered or unexported fields
}
Role represents a Role scruber.
type RoleBinding ¶ added in v0.6.0
type RoleBinding struct {
*config.Config
*issues.Collector
*cache.RoleBinding
*cache.ClusterRole
*cache.Role
// contains filtered or unexported fields
}
RoleBinding represents a RoleBinding scruber.
type Sanitizer ¶
type Sanitizer interface {
Collector
Sanitize(context.Context) error
}
Sanitizer represents a resource sanitizer.
func NewCluster ¶ added in v0.4.0
func NewCluster(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewCluster return a new Cluster scruber.
func NewClusterRole ¶ added in v0.6.0
func NewClusterRole(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewClusterRole return a new ClusterRole scruber.
func NewClusterRoleBinding ¶ added in v0.6.0
func NewClusterRoleBinding(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewClusterRoleBinding return a new ClusterRoleBinding scruber.
func NewConfigMap ¶
func NewConfigMap(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewConfigMap return a new ConfigMap scruber.
func NewDaemonSet ¶ added in v0.4.0
func NewDaemonSet(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewDaemonSet return a new DaemonSet scruber.
func NewDeployment ¶
func NewDeployment(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewDeployment return a new Deployment scruber.
func NewHorizontalPodAutoscaler ¶
func NewHorizontalPodAutoscaler(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewHorizontalPodAutoscaler return a new HorizontalPodAutoscaler scruber.
func NewIngress ¶ added in v0.4.0
func NewIngress(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewIngress return a new Ingress scruber.
func NewNamespace ¶
func NewNamespace(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewNamespace return a new Namespace scruber.
func NewNetworkPolicy ¶ added in v0.4.0
func NewNetworkPolicy(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewNetworkPolicy return a new NetworkPolicy scruber.
func NewNode ¶
func NewNode(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewNode return a new Node scruber.
func NewPersistentVolume ¶
func NewPersistentVolume(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewPersistentVolume return a new PersistentVolume scruber.
func NewPersistentVolumeClaim ¶
func NewPersistentVolumeClaim(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewPersistentVolumeClaim return a new PersistentVolumeClaim scruber.
func NewPod ¶
func NewPod(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewPod return a new Pod scruber.
func NewPodDisruptionBudget ¶ added in v0.3.10
func NewPodDisruptionBudget(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewPodDisruptionBudget return a new PodDisruptionBudget scruber.
func NewPodSecurityPolicy ¶ added in v0.4.0
func NewPodSecurityPolicy(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewPodSecurityPolicy return a new PodSecurityPolicy scruber.
func NewReplicaSet ¶ added in v0.4.0
func NewReplicaSet(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewReplicaSet return a new ReplicaSet scruber.
func NewRole ¶ added in v0.6.0
func NewRole(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewRole return a new Role scruber.
func NewRoleBinding ¶ added in v0.6.0
func NewRoleBinding(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewRoleBinding return a new RoleBinding scruber.
func NewSecret ¶
func NewSecret(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewSecret return a new Secret scruber.
func NewService ¶
func NewService(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewService return a new Service scruber.
func NewServiceAccount ¶
func NewServiceAccount(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewServiceAccount return a new ServiceAccount scruber.
func NewStatefulSet ¶
func NewStatefulSet(ctx context.Context, c *Cache, codes *issues.Codes) Sanitizer
NewStatefulSet return a new StatefulSet scruber.
type Secret ¶
type Secret struct {
*issues.Collector
*cache.Secret
*cache.Pod
*cache.ServiceAccount
*cache.Ingress
}
Secret represents a Secret scruber.
type Service ¶
type Service struct {
*issues.Collector
*cache.Service
*cache.Pod
*cache.Endpoints
}
Service represents a Service scruber.
type ServiceAccount ¶ added in v0.4.0
type ServiceAccount struct {
*issues.Collector
*cache.ServiceAccount
*cache.Pod
*cache.ClusterRoleBinding
*cache.RoleBinding
*cache.Secret
*cache.Ingress
}
ServiceAccount represents a ServiceAccount scruber.
type StatefulSet ¶
type StatefulSet struct {
*issues.Collector
*cache.Pod
*cache.StatefulSet
*cache.PodsMetrics
*config.Config
}
StatefulSet represents a StatefulSet scruber.