mcpclient

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMCPServerUnavailable indicates the MCP server could not be reached (e.g. it is not
	// deployed, or its Service has no endpoints yet). Callers can use errors.Is to distinguish
	// this from errors returned by the MCP tools themselves.
	ErrMCPServerUnavailable = errors.New("mcp server is not available")
)

Functions

func AnalyzeClassifierPipeline added in v1.13.0

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

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