tools

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGetResourceTool added in v0.1.0

func NewGetResourceTool(pool k8s.ClientPool) fxctx.Tool

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 NewListResourcesTool added in v0.1.0

func NewListResourcesTool(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 ListContent added in v0.1.0

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

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

Jump to

Keyboard shortcuts

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