analyzer

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeEndpoints added in v0.0.6

func AnalyzeEndpoints(ctx context.Context, config *AnalysisConfiguration, client *kubernetes.Client, aiClient ai.IAI,
	analysisResults *[]Analysis) error

func AnalyzeIngress added in v0.1.3

func AnalyzeIngress(ctx context.Context, config *AnalysisConfiguration, client *kubernetes.Client, aiClient ai.IAI,
	analysisResults *[]Analysis) error

func AnalyzePersistentVolumeClaim added in v0.0.6

func AnalyzePersistentVolumeClaim(ctx context.Context, config *AnalysisConfiguration, client *kubernetes.Client, aiClient ai.IAI, analysisResults *[]Analysis) error

func AnalyzePod added in v0.0.3

func AnalyzePod(ctx context.Context, config *AnalysisConfiguration,
	client *kubernetes.Client, aiClient ai.IAI, analysisResults *[]Analysis) error

func AnalyzeReplicaSet added in v0.0.3

func AnalyzeReplicaSet(ctx context.Context, config *AnalysisConfiguration,
	client *kubernetes.Client, aiClient ai.IAI, analysisResults *[]Analysis) error

func FetchLatestPodEvent added in v0.0.3

func FetchLatestPodEvent(ctx context.Context, kubernetesClient *kubernetes.Client, pod *v1.Pod) (*v1.Event, error)

func FetchLatestPvcEvent added in v0.0.6

func FetchLatestPvcEvent(ctx context.Context, kubernetesClient *kubernetes.Client, pvc *v1.PersistentVolumeClaim) (*v1.Event, error)

func ListFilters added in v0.1.5

func ListFilters() []string

func ParseViaAI added in v0.0.7

func ParseViaAI(ctx context.Context, config *AnalysisConfiguration,
	aiClient ai.IAI, prompt []string) (string, error)

func RunAnalysis

func RunAnalysis(ctx context.Context, filters []string, config *AnalysisConfiguration,
	client *kubernetes.Client,
	aiClient ai.IAI, analysisResults *[]Analysis) error

Types

type Analysis added in v0.0.6

type Analysis struct {
	Kind         string   `json:"kind"`
	Name         string   `json:"name"`
	Error        []string `json:"error"`
	Details      string   `json:"details"`
	ParentObject string   `json:"parentObject"`
}

type AnalysisConfiguration added in v0.1.2

type AnalysisConfiguration struct {
	Namespace string
	NoCache   bool
	Explain   bool
}

type PreAnalysis added in v0.0.6

type PreAnalysis struct {
	Pod                   v1.Pod
	FailureDetails        []string
	ReplicaSet            appsv1.ReplicaSet
	PersistentVolumeClaim v1.PersistentVolumeClaim
	Endpoint              v1.Endpoints
	Ingress               networkingv1.Ingress
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL