resource

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterResourceTools

func RegisterResourceTools(s *mcpserver.MCPServer, sc *server.ServerContext) error

RegisterResourceTools registers all resource management tools with the MCP server

Types

type ApplyResourceArgs

type ApplyResourceArgs struct {
	KubeContext string      `json:"kubeContext,omitempty"`
	Namespace   string      `json:"namespace"`
	Manifest    interface{} `json:"manifest"`
}

ApplyResourceArgs defines the arguments for kubectl apply operations

type CreateResourceArgs

type CreateResourceArgs struct {
	KubeContext string      `json:"kubeContext,omitempty"`
	Namespace   string      `json:"namespace"`
	Manifest    interface{} `json:"manifest"`
}

CreateResourceArgs defines the arguments for kubectl create operations

type DeleteResourceArgs

type DeleteResourceArgs struct {
	KubeContext  string `json:"kubeContext,omitempty"`
	Namespace    string `json:"namespace"`
	ResourceType string `json:"resourceType"`
	Name         string `json:"name"`
}

DeleteResourceArgs defines the arguments for kubectl delete operations

type DescribeResourceArgs

type DescribeResourceArgs struct {
	KubeContext  string `json:"kubeContext,omitempty"`
	Namespace    string `json:"namespace"`
	ResourceType string `json:"resourceType"`
	Name         string `json:"name"`
}

DescribeResourceArgs defines the arguments for kubectl describe operations

type GetResourceArgs

type GetResourceArgs struct {
	KubeContext  string `json:"kubeContext,omitempty"`
	Namespace    string `json:"namespace"`
	ResourceType string `json:"resourceType"`
	Name         string `json:"name"`
}

GetResourceArgs defines the arguments for kubectl get operations

type ListResourceArgs

type ListResourceArgs struct {
	KubeContext   string `json:"kubeContext,omitempty"`
	Namespace     string `json:"namespace"`
	ResourceType  string `json:"resourceType"`
	LabelSelector string `json:"labelSelector,omitempty"`
	FieldSelector string `json:"fieldSelector,omitempty"`
	AllNamespaces bool   `json:"allNamespaces,omitempty"`
}

ListResourceArgs defines the arguments for kubectl list operations

type PatchResourceArgs

type PatchResourceArgs struct {
	KubeContext  string      `json:"kubeContext,omitempty"`
	Namespace    string      `json:"namespace"`
	ResourceType string      `json:"resourceType"`
	Name         string      `json:"name"`
	PatchType    string      `json:"patchType"`
	Patch        interface{} `json:"patch"`
}

PatchResourceArgs defines the arguments for kubectl patch operations

type ScaleResourceArgs

type ScaleResourceArgs struct {
	KubeContext  string `json:"kubeContext,omitempty"`
	Namespace    string `json:"namespace"`
	ResourceType string `json:"resourceType"`
	Name         string `json:"name"`
	Replicas     int32  `json:"replicas"`
}

ScaleResourceArgs defines the arguments for kubectl scale operations

Jump to

Keyboard shortcuts

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