runtime

package
v0.1.13 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteKubernetesAgent added in v0.1.11

func DeleteKubernetesAgent(ctx context.Context, name, version, namespace string) error

DeleteKubernetesAgent deletes a kagent Agent CR by name/version.

func DeleteKubernetesMCPServer added in v0.1.11

func DeleteKubernetesMCPServer(ctx context.Context, name, namespace string) error

DeleteKubernetesMCPServer deletes a kagent MCPServer CR by name.

func DeleteKubernetesRemoteMCPServer added in v0.1.11

func DeleteKubernetesRemoteMCPServer(ctx context.Context, name, namespace string) error

DeleteKubernetesRemoteMCPServer deletes a kagent RemoteMCPServer CR by name.

func GetKubeClient added in v0.1.13

func GetKubeClient() (client.Client, error)

controller-runtime client singleton

func ListAgents added in v0.1.13

func ListAgents(ctx context.Context, namespace string) ([]*v1alpha2.Agent, error)

ListAgents lists all Agent CRs in the given namespace (or all namespaces if empty)

func ListMCPServers added in v0.1.13

func ListMCPServers(ctx context.Context, namespace string) ([]*kmcpv1alpha1.MCPServer, error)

ListMCPServers lists all MCPServer CRs in the given namespace (or all namespaces if empty)

func ListRemoteMCPServers added in v0.1.13

func ListRemoteMCPServers(ctx context.Context, namespace string) ([]*v1alpha2.RemoteMCPServer, error)

ListRemoteMCPServers lists all RemoteMCPServer CRs in the given namespace (or all namespaces if empty)

func ValidateRuntime

func ValidateRuntime(runtime string) error

ValidateRuntime checks if a runtime is valid

Types

type AgentRegistryRuntime

type AgentRegistryRuntime interface {
	ReconcileAll(
		ctx context.Context,
		servers []*registry.MCPServerRunRequest,
		agents []*registry.AgentRunRequest,
	) error
}

func NewAgentRegistryRuntime

func NewAgentRegistryRuntime(
	registryTranslator registry.Translator,
	translator api.RuntimeTranslator,
	runtimeDir string,
	verbose bool,
) AgentRegistryRuntime

type RuntimeValidator

type RuntimeValidator func(runtime string) error

RuntimeValidator is a function that validates if a runtime value is supported

var (
	// SupportedRuntimes defines the available runtimes
	SupportedRuntimes = []string{"local", "kubernetes"}

	// CustomRuntimeValidator allows extending the runtimes
	CustomRuntimeValidator RuntimeValidator
)

Directories

Path Synopsis
translation
api

Jump to

Keyboard shortcuts

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