Documentation ¶
Index ¶
- Variables
- func BounceMarshalGeneric[A any](in interface{}) (*A, error)
- func ParseMany(data []byte) ([]interface{}, error)
- func ParseManyFromFile(path string) ([]interface{}, error)
- func Run(path string)
- func RunAnalyzeExample(path string)
- type Container
- type KeySetComparison
- type KubeResources
- type Model
- func (m *Model) AddPodWrapper(kind string, name string, spec *PodSpec)
- func (m *Model) AddSkippedResource(kind string, name string)
- func (m *Model) ConfigMapUsages(name string) []string
- func (m *Model) ConfigMapsTable()
- func (m *Model) GetImageUsages() map[string][]string
- func (m *Model) GetUsedUnusedSecretsAndConfigMaps() (*KeySetComparison, *KeySetComparison)
- func (m *Model) Graph() *graph.Graph
- func (m *Model) ImagesTable()
- func (m *Model) PodsTable(resources map[string]*PodSpec)
- func (m *Model) SecretConfigMapsUsages() (map[string][]string, map[string][]string)
- func (m *Model) SecretUsages(name string) []string
- func (m *Model) SecretsTable()
- func (m *Model) SkippedResourcesTable()
- func (m *Model) Tables()
- type Node
- type PodSpec
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ClusterScopedResources = map[string]bool{}
)
Functions ¶
func BounceMarshalGeneric ¶
func ParseManyFromFile ¶
func RunAnalyzeExample ¶
func RunAnalyzeExample(path string)
Types ¶
type Container ¶
type Container struct { IsInit bool Name string ConfigMaps map[string]bool Secrets map[string]bool Image string }
func (*Container) ConfigMapsSlice ¶
func (*Container) SecretsSlice ¶
type KeySetComparison ¶
func CompareKeySets ¶
func CompareKeySets(a map[string]bool, b map[string]bool) *KeySetComparison
type KubeResources ¶
type KubeResources struct { // Order: kind, name ClusterScoped map[string]map[string]*Node // Order: kind, namespace, name Namespaced map[string]map[string]map[string]*Node }
func ParseResources ¶
func ParseResources(values []interface{}) (*KubeResources, error)
func (*KubeResources) Add ¶
func (k *KubeResources) Add(node *Node) error
type Model ¶
type Model struct { Pods map[string]map[string]*PodSpec Secrets []string ConfigMaps []string Skipped map[string][]string }
func (*Model) AddPodWrapper ¶
func (*Model) AddSkippedResource ¶
func (*Model) ConfigMapUsages ¶
func (*Model) ConfigMapsTable ¶
func (m *Model) ConfigMapsTable()
func (*Model) GetImageUsages ¶
func (*Model) GetUsedUnusedSecretsAndConfigMaps ¶
func (m *Model) GetUsedUnusedSecretsAndConfigMaps() (*KeySetComparison, *KeySetComparison)
func (*Model) ImagesTable ¶
func (m *Model) ImagesTable()
func (*Model) SecretConfigMapsUsages ¶
func (*Model) SecretUsages ¶
func (*Model) SecretsTable ¶
func (m *Model) SecretsTable()
func (*Model) SkippedResourcesTable ¶
func (m *Model) SkippedResourcesTable()
type PodSpec ¶
func AnalyzeCronJob ¶
func AnalyzeDeployment ¶
func AnalyzeDeployment(dep *appsv1.Deployment) *PodSpec
func AnalyzeJob ¶
func AnalyzePodSpec ¶
func AnalyzeStatefulSet ¶
func AnalyzeStatefulSet(sset *appsv1.StatefulSet) *PodSpec
Click to show internal directories.
Click to hide internal directories.