mcpclient

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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