analyzer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 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, client *kubernetes.Client, aiClient ai.IAI, explain bool, analysisResults *[]Analysis) error

func AnalyzePersistentVolumeClaim added in v0.0.6

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

func AnalyzePod added in v0.0.3

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

func AnalyzeReplicaSet added in v0.0.3

func AnalyzeReplicaSet(ctx context.Context, client *kubernetes.Client, aiClient ai.IAI, explain bool, 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 RunAnalysis

func RunAnalysis(ctx context.Context, client *kubernetes.Client, aiClient ai.IAI, explain bool, 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 PreAnalysis added in v0.0.6

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

Jump to

Keyboard shortcuts

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