Versions in this module Expand all Collapse all v1 v1.18.0 Aug 11, 2023 v1.9.9 Oct 24, 2023 Changes in this version + const NormalResultOutput + var AnalyzerErrorsMetric = promauto.NewGaugeVec(prometheus.GaugeOpts{ ... }, []string{ ... }) + func CheckCronScheduleIsValid(schedule string) (bool, error) + func EnsureDirExists(dir string) error + func FetchLatestEvent(ctx context.Context, kubernetesClient *Client, namespace string, name string) (*v1.Event, error) + func FileExists(path string) (bool, error) + func GetAnalyzerMap() (map[string]IAnalyzer, map[string]IAnalyzer) + func GetParent(client *Client, meta metav1.ObjectMeta) (string, bool) + func GetPodListByLabels(client k.Interface, namespace string, labels map[string]string) (*v1.PodList, error) + func ListFilters() ([]string, []string, []string) + func MaskString(input string) string + func RemoveDuplicates(slice []string) ([]string, []string) + func ReplaceIfMatch(text string, pattern string, replacement string) string + func SliceContainsString(slice []string, s string) bool + func SliceDiff(source, dest []string) []string + type Analysis struct + AIClient llm.ILLM + AnalysisAIProvider string + Cache cache.ICache + Client *Client + Context context.Context + Errors []string + Explain bool + Filters []string + MaxConcurrency int + Namespace string + Results []Result + WithDoc bool + func NewAnalysis(ctx context.Context, hubserverAddr, clusterID string, llmClient llm.ILLM, ...) (*Analysis, error) + func (a *Analysis) GetAIResults(anonymize bool) error + func (a *Analysis) PrintOutput(format string) ([]byte, error) + func (a *Analysis) RunAnalysis(activeFilters []string) + type AnalysisErrors []string + type AnalysisStatus string + const StateOK + const StateProblemDetected + type Analyzer struct + AIClient llm.ILLM + Client *Client + Context context.Context + Namespace string + OpenapiSchema *openapi_v2.Document + PreAnalysis map[string]PreAnalysis + Results []Result + type Client struct + Client kubernetes.Interface + Config *rest.Config + RestClient rest.Interface + ServerVersion *version.Info + func NewClient(hubserverAddr, clusterID string) (*Client, error) + func (c *Client) GetClient() kubernetes.Interface + func (c *Client) GetConfig() *rest.Config + func (c *Client) GetRestClient() rest.Interface + type CronJobAnalyzer struct + func (analyzer CronJobAnalyzer) Analyze(a Analyzer) ([]Result, error) + type DeploymentAnalyzer struct + func (d DeploymentAnalyzer) Analyze(a Analyzer) ([]Result, error) + type DeploymentInfo struct + func (d DeploymentInfo) GetPodSpec() corev1.PodSpec + type Failure struct + KubernetesDoc string + Sensitive []Sensitive + Text string + type HpaAnalyzer struct + func (HpaAnalyzer) Analyze(a Analyzer) ([]Result, error) + type IAnalyzer interface + Analyze func(analysis Analyzer) ([]Result, error) + type IngressAnalyzer struct + func (IngressAnalyzer) Analyze(a Analyzer) ([]Result, error) + type JsonOutput struct + Errors AnalysisErrors + Problems int + Provider string + Results []Result + Status AnalysisStatus + type NetworkPolicyAnalyzer struct + func (NetworkPolicyAnalyzer) Analyze(a Analyzer) ([]Result, error) + type NodeAnalyzer struct + func (NodeAnalyzer) Analyze(a Analyzer) ([]Result, error) + type PdbAnalyzer struct + func (PdbAnalyzer) Analyze(a Analyzer) ([]Result, error) + type PodAnalyzer struct + func (PodAnalyzer) Analyze(a Analyzer) ([]Result, error) + type PodInfo interface + GetPodSpec func() corev1.PodSpec + type PreAnalysis struct + Deployment appsv1.Deployment + Endpoint v1.Endpoints + FailureDetails []Failure + HorizontalPodAutoscalers autov1.HorizontalPodAutoscaler + Ingress networkv1.Ingress + NetworkPolicy networkv1.NetworkPolicy + Node v1.Node + PersistentVolumeClaim v1.PersistentVolumeClaim + Pod v1.Pod + PodDisruptionBudget policyv1.PodDisruptionBudget + ReplicaSet appsv1.ReplicaSet + StatefulSet appsv1.StatefulSet + type PvcAnalyzer struct + func (PvcAnalyzer) Analyze(a Analyzer) ([]Result, error) + type ReplicaSetAnalyzer struct + func (ReplicaSetAnalyzer) Analyze(a Analyzer) ([]Result, error) + type ReplicaSetInfo struct + func (rs ReplicaSetInfo) GetPodSpec() corev1.PodSpec + type ReplicationControllerInfo struct + func (rc ReplicationControllerInfo) GetPodSpec() corev1.PodSpec + type Result struct + Details string + Error []Failure + Kind string + Name string + ParentObject string + type Sensitive struct + Masked string + Unmasked string + type ServiceAnalyzer struct + func (ServiceAnalyzer) Analyze(a Analyzer) ([]Result, error) + type StatefulSetAnalyzer struct + func (StatefulSetAnalyzer) Analyze(a Analyzer) ([]Result, error) + type StatefulSetInfo struct + func (ss StatefulSetInfo) GetPodSpec() corev1.PodSpec Other modules containing this package github.com/koderover/zadig/v2