mcpclient

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeEventPipeline added in v1.4.0

func AnalyzeEventPipeline(ctx context.Context, url string, clusterRef *corev1.ObjectReference,
	eventTriggerName string, logger logr.Logger) ([]string, error)

Types

type DeploymentStatus added in v1.1.1

type DeploymentStatus struct {
	ProfileName   string   `json:"profileName" jsonschema:"The name of the Sveltos profile that is failing"`
	ProfileKind   string   `json:"profileKind" jsonschema:"The profile kind (ClusterProfile vs Profile)"`
	IsSuccessfull bool     `json:"isSuccessful" jsonschema:"Indicates if the profile was deployed without any errors."`
	Causes        []string `json:"causes,omitempty" jsonschema:"The reasons for the deployment failure"`
}

DeploymentError represents a single deployment failure for a Sveltos profile.

func CheckProfileDeploymentOnCluster

func CheckProfileDeploymentOnCluster(ctx context.Context, url string, clusterRef,
	profileRef *corev1.ObjectReference, logger logr.Logger) (*DeploymentStatus, error)

type EventPipelineStatus added in v1.4.0

type EventPipelineStatus struct {
	// Stage 1: Detection
	ClusterReady                     bool   `json:"clusterReady"`
	ClusterPaused                    bool   `json:"clusterPaused"`
	ClusterMatched                   bool   `json:"clusterMatched"`
	ClusterProvisioned               bool   `json:"clusterProvisioned"`
	EventSourceName                  string `json:"eventSourceName"`
	EventSourceFoundInControlCluster bool   `json:"eventSourceFoundInControlCluster"`
	EventSourceFoundInManagedCluster bool   `json:"eventSourceFoundInManagedCluster"`
	EventReportFoundInManagedCluster bool   `json:"eventReportFoundInManagedCluster"`
	EventReportFoundInControlCluster bool   `json:"eventReportFoundInControlCluster"`
	ResourcesDetected                int    `json:"resourcesDetected"`
	LastEventReportTime              string `json:"lastEventReportTime,omitempty"`

	// Stage 2: Result
	InstantiatedProfile string `json:"instantiatedProfile,omitempty"`

	// Issue Reporting: contains all detected issues
	Issues []string `json:"issues,omitempty"`
}

type FailedDeployments added in v1.1.1

type FailedDeployments struct {
	FailedProfiles []DeploymentStatus `json:"failedProfiles" jsonschema:"List of all profiles failing to deploy or whose deployment has failed."`
}

func CheckClusterDeploymentStatuses

func CheckClusterDeploymentStatuses(ctx context.Context, url string, clusterRef *corev1.ObjectReference,
	logger logr.Logger) (*FailedDeployments, error)

type SveltosInstallationResult

type SveltosInstallationResult struct {
	IsCorrectlyInstalled bool     `json:"is_correctly_installed"`
	Details              []string `json:"details,omitempty"`
}

SveltosInstallationResult reports the outcome of the Sveltos installation verification.

func CheckInstallation

func CheckInstallation(ctx context.Context, url string, logger logr.Logger) (*SveltosInstallationResult, error)

Jump to

Keyboard shortcuts

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