tools

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonContent

func NewJsonContent(v interface{}) (mcp.TextContent, error)

func NewListContextsTool

func NewListContextsTool() fxctx.Tool

func NewListEventsTool

func NewListEventsTool(pool k8s.ClientPool) fxctx.Tool

func NewListNamespacesTool added in v0.0.19

func NewListNamespacesTool(pool k8s.ClientPool) fxctx.Tool

func NewListNodesTool added in v0.0.20

func NewListNodesTool(pool k8s.ClientPool) fxctx.Tool

func NewListPodsTool

func NewListPodsTool(pool k8s.ClientPool) fxctx.Tool

func NewListServicesTool added in v0.0.18

func NewListServicesTool(pool k8s.ClientPool) fxctx.Tool

func NewPodLogsTool

func NewPodLogsTool(pool k8s.ClientPool) fxctx.Tool

Types

type ContextJsonEncoded

type ContextJsonEncoded struct {
	Context *api.Context `json:"context"`
	Name    string       `json:"name"`
	Current bool         `json:"current"`
}

type EventInList

type EventInList struct {
	Action         string         `json:"action"`
	Message        string         `json:"message"`
	Type           string         `json:"type"`
	Reason         string         `json:"reason"`
	InvolvedObject InvolvedObject `json:"involvedObject"`
}

type InvolvedObject added in v0.0.17

type InvolvedObject struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
}

type NamespacesInList added in v0.0.19

type NamespacesInList struct {
	Name string `json:"name"`
}

type NodeInList added in v0.0.20

type NodeInList struct {
	Name      string    `json:"name"`
	Status    string    `json:"status"`
	Age       string    `json:"age"`
	CreatedAt time.Time `json:"created_at"`
}

NodeInList provides a structured representation of node information

type PodInList

type PodInList struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
}

type ServiceContent added in v0.0.18

type ServiceContent struct {
	Name        string   `json:"name"`
	Namespace   string   `json:"namespace"`
	Type        string   `json:"type"`
	ClusterIP   string   `json:"clusterIP"`
	ExternalIPs []string `json:"externalIPs"`
	Ports       []string `json:"ports"`
}

Jump to

Keyboard shortcuts

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