popeye: github.com/derailed/popeye/internal/scrub Index | Files

package scrub

import "github.com/derailed/popeye/internal/scrub"

Index

Package Files

cache.go cluster.go cm.go dp.go ds.go hpa.go ing.go no.go np.go ns.go pdb.go pod.go psp.go pv.go pvc.go rs.go sa.go sec.go sts.go svc.go

type Cache Uses

type Cache struct {
    // contains filtered or unexported fields
}

Cache caches commonly used resources.

func NewCache Uses

func NewCache(c *k8s.Client, cfg *config.Config) *Cache

NewCache returns a new resource cache

type Cluster Uses

type Cluster struct {
    *issues.Collector
    *cache.Cluster
    *config.Config
    // contains filtered or unexported fields
}

Cluster represents a Cluster sanitizer.

func (*Cluster) Sanitize Uses

func (d *Cluster) Sanitize(ctx context.Context) error

Sanitize all available Clusters.

type Collector Uses

type Collector interface {
    MaxSeverity(res string) issues.Level
    Outcome() issues.Outcome
}

Collector collects sanitization issues.

type ConfigMap Uses

type ConfigMap struct {
    *issues.Collector
    *cache.Pod
    *cache.ConfigMap
}

ConfigMap represents a configMap sanitizer.

func (*ConfigMap) Sanitize Uses

func (c *ConfigMap) Sanitize(ctx context.Context) error

Sanitize all available ConfigMaps.

type DaemonSet Uses

type DaemonSet struct {
    *issues.Collector
    *cache.DaemonSet
    *cache.PodsMetrics
    *cache.Pod
    *config.Config
    // contains filtered or unexported fields
}

DaemonSet represents a DaemonSet sanitizer.

func (*DaemonSet) Sanitize Uses

func (d *DaemonSet) Sanitize(ctx context.Context) error

Sanitize all available DaemonSets.

type Deployment Uses

type Deployment struct {
    *issues.Collector
    *cache.Deployment
    *cache.PodsMetrics
    *cache.Pod
    *config.Config
    // contains filtered or unexported fields
}

Deployment represents a Deployment sanitizer.

func (*Deployment) Sanitize Uses

func (d *Deployment) Sanitize(ctx context.Context) error

Sanitize all available Deployments.

type HorizontalPodAutoscaler Uses

type HorizontalPodAutoscaler struct {
    *issues.Collector
    *cache.HorizontalPodAutoscaler
    *cache.Pod
    *cache.PodsMetrics
    *cache.Deployment
    *cache.StatefulSet
    *cache.NodesMetrics
    *config.Config
}

HorizontalPodAutoscaler represents a HorizontalPodAutoscaler sanitizer.

func (*HorizontalPodAutoscaler) Sanitize Uses

func (h *HorizontalPodAutoscaler) Sanitize(ctx context.Context) error

Sanitize all available HorizontalPodAutoscalers.

type Ingress Uses

type Ingress struct {
    *issues.Collector
    *cache.Ingress
    *config.Config
    // contains filtered or unexported fields
}

Ingress represents a Ingress sanitizer.

func (*Ingress) Sanitize Uses

func (i *Ingress) Sanitize(ctx context.Context) error

Sanitize all available Ingresss.

type Namespace Uses

type Namespace struct {
    *issues.Collector
    *cache.Namespace
    *cache.Pod
}

Namespace represents a Namespace sanitizer.

func (*Namespace) ReferencedNamespaces Uses

func (n *Namespace) ReferencedNamespaces(res map[string]struct{})

ReferencedNamespaces fetch all namespaces referenced by pods.

func (*Namespace) Sanitize Uses

func (n *Namespace) Sanitize(ctx context.Context) error

Sanitize all available Namespaces.

type NetworkPolicy Uses

type NetworkPolicy struct {
    *issues.Collector
    *cache.NetworkPolicy
    *cache.Namespace
    *cache.Pod
    *config.Config
    // contains filtered or unexported fields
}

NetworkPolicy represents a NetworkPolicy sanitizer.

func (*NetworkPolicy) Sanitize Uses

func (n *NetworkPolicy) Sanitize(ctx context.Context) error

Sanitize all available NetworkPolicys.

type Node Uses

type Node struct {
    *issues.Collector
    *cache.Node
    *cache.Pod
    *cache.NodesMetrics
    *config.Config
}

Node represents a Node sanitizer.

func (*Node) Sanitize Uses

func (n *Node) Sanitize(ctx context.Context) error

Sanitize all available Nodes.

type PersistentVolume Uses

type PersistentVolume struct {
    *issues.Collector
    *cache.PersistentVolume
    *cache.Pod
}

PersistentVolume represents a PersistentVolume sanitizer.

func (*PersistentVolume) Sanitize Uses

func (s *PersistentVolume) Sanitize(ctx context.Context) error

Sanitize all available PersistentVolumes.

type PersistentVolumeClaim Uses

type PersistentVolumeClaim struct {
    *issues.Collector
    *cache.PersistentVolumeClaim
    *cache.Pod
}

PersistentVolumeClaim represents a PersistentVolumeClaim sanitizer.

func (*PersistentVolumeClaim) Sanitize Uses

func (s *PersistentVolumeClaim) Sanitize(ctx context.Context) error

Sanitize all available PersistentVolumeClaims.

type Pod Uses

type Pod struct {
    *issues.Collector
    *cache.Pod
    *cache.PodsMetrics
    *config.Config
    *cache.PodDisruptionBudget
}

Pod represents a Pod sanitizer.

func (*Pod) Sanitize Uses

func (p *Pod) Sanitize(ctx context.Context) error

Sanitize all available Pods.

type PodDisruptionBudget Uses

type PodDisruptionBudget struct {
    *issues.Collector
    *cache.Pod
    *cache.PodDisruptionBudget
}

PodDisruptionBudget represents a pdb sanitizer.

func (*PodDisruptionBudget) Sanitize Uses

func (c *PodDisruptionBudget) Sanitize(ctx context.Context) error

Sanitize all available PodDisruptionBudgets.

type PodSecurityPolicy Uses

type PodSecurityPolicy struct {
    *issues.Collector
    *cache.PodSecurityPolicy
    *config.Config
    // contains filtered or unexported fields
}

PodSecurityPolicy represents a PodSecurityPolicy sanitizer.

func (*PodSecurityPolicy) Sanitize Uses

func (p *PodSecurityPolicy) Sanitize(ctx context.Context) error

Sanitize all available PodSecurityPolicys.

type ReplicaSet Uses

type ReplicaSet struct {
    *issues.Collector
    *cache.ReplicaSet
    *cache.Pod
    *config.Config
    // contains filtered or unexported fields
}

ReplicaSet represents a ReplicaSet sanitizer.

func (*ReplicaSet) Sanitize Uses

func (d *ReplicaSet) Sanitize(ctx context.Context) error

Sanitize all available ReplicaSets.

type Sanitizer Uses

type Sanitizer interface {
    Collector
    Sanitize(context.Context) error
}

Sanitizer represents a resource sanitizer.

func NewCluster Uses

func NewCluster(c *Cache, codes *issues.Codes) Sanitizer

NewCluster return a new Cluster sanitizer.

func NewConfigMap Uses

func NewConfigMap(c *Cache, codes *issues.Codes) Sanitizer

NewConfigMap return a new ConfigMap sanitizer.

func NewDaemonSet Uses

func NewDaemonSet(c *Cache, codes *issues.Codes) Sanitizer

NewDaemonSet return a new DaemonSet sanitizer.

func NewDeployment Uses

func NewDeployment(c *Cache, codes *issues.Codes) Sanitizer

NewDeployment return a new Deployment sanitizer.

func NewHorizontalPodAutoscaler Uses

func NewHorizontalPodAutoscaler(c *Cache, codes *issues.Codes) Sanitizer

NewHorizontalPodAutoscaler return a new HorizontalPodAutoscaler sanitizer.

func NewIngress Uses

func NewIngress(c *Cache, codes *issues.Codes) Sanitizer

NewIngress return a new Ingress sanitizer.

func NewNamespace Uses

func NewNamespace(c *Cache, codes *issues.Codes) Sanitizer

NewNamespace return a new Namespace sanitizer.

func NewNetworkPolicy Uses

func NewNetworkPolicy(c *Cache, codes *issues.Codes) Sanitizer

NewNetworkPolicy return a new NetworkPolicy sanitizer.

func NewNode Uses

func NewNode(c *Cache, codes *issues.Codes) Sanitizer

NewNode return a new Node sanitizer.

func NewPersistentVolume Uses

func NewPersistentVolume(c *Cache, codes *issues.Codes) Sanitizer

NewPersistentVolume return a new PersistentVolume sanitizer.

func NewPersistentVolumeClaim Uses

func NewPersistentVolumeClaim(c *Cache, codes *issues.Codes) Sanitizer

NewPersistentVolumeClaim return a new PersistentVolumeClaim sanitizer.

func NewPod Uses

func NewPod(c *Cache, codes *issues.Codes) Sanitizer

NewPod return a new Pod sanitizer.

func NewPodDisruptionBudget Uses

func NewPodDisruptionBudget(c *Cache, codes *issues.Codes) Sanitizer

NewPodDisruptionBudget return a new PodDisruptionBudget sanitizer.

func NewPodSecurityPolicy Uses

func NewPodSecurityPolicy(c *Cache, codes *issues.Codes) Sanitizer

NewPodSecurityPolicy return a new PodSecurityPolicy sanitizer.

func NewReplicaSet Uses

func NewReplicaSet(c *Cache, codes *issues.Codes) Sanitizer

NewReplicaSet return a new ReplicaSet sanitizer.

func NewSecret Uses

func NewSecret(c *Cache, codes *issues.Codes) Sanitizer

NewSecret return a new Secret sanitizer.

func NewService Uses

func NewService(c *Cache, codes *issues.Codes) Sanitizer

NewService return a new Service sanitizer.

func NewServiceAccount Uses

func NewServiceAccount(c *Cache, codes *issues.Codes) Sanitizer

NewServiceAccount return a new ServiceAccount sanitizer.

func NewStatefulSet Uses

func NewStatefulSet(c *Cache, codes *issues.Codes) Sanitizer

NewStatefulSet return a new StatefulSet sanitizer.

type Secret Uses

type Secret struct {
    *issues.Collector
    *cache.Secret
    *cache.Pod
    *cache.ServiceAccount
    *cache.Ingress
}

Secret represents a Secret sanitizer.

func (*Secret) Sanitize Uses

func (c *Secret) Sanitize(ctx context.Context) error

Sanitize all available Secrets.

type Service Uses

type Service struct {
    *issues.Collector
    *cache.Service
    *cache.Pod
    *cache.Endpoints
}

Service represents a Service sanitizer.

func (*Service) Sanitize Uses

func (s *Service) Sanitize(ctx context.Context) error

Sanitize all available Services.

type ServiceAccount Uses

type ServiceAccount struct {
    *issues.Collector
    *cache.ServiceAccount
    *cache.Pod
    *cache.ClusterRoleBinding
    *cache.RoleBinding
    *cache.Secret
    *cache.Ingress
}

ServiceAccount represents a ServiceAccount sanitizer.

func (*ServiceAccount) Sanitize Uses

func (s *ServiceAccount) Sanitize(ctx context.Context) error

Sanitize all available ServiceAccounts.

type StatefulSet Uses

type StatefulSet struct {
    *issues.Collector
    *cache.Pod
    *cache.StatefulSet
    *cache.PodsMetrics
    *config.Config
}

StatefulSet represents a StatefulSet sanitizer.

func (*StatefulSet) Sanitize Uses

func (c *StatefulSet) Sanitize(ctx context.Context) error

Sanitize all available StatefulSets.

Package scrub imports 7 packages (graph) and is imported by 1 packages. Updated 2019-11-15. Refresh now. Tools for package owners.