Documentation
¶
Overview ¶
Package tools holds helpers shared by the MCP tool sets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResources ¶
GetResources gets or lists COSI resources matching the query and renders them as YAML.
func InputSchema ¶ added in v0.2.0
func InputSchema[In any](patch func(props map[string]*jsonschema.Schema)) *jsonschema.Schema
InputSchema infers the input schema of In and lets patch adjust its properties.
Types ¶
type ResourceQuery ¶
type ResourceQuery struct {
Type string `json:"type"`
ID string `json:"id,omitempty" jsonschema:"resource ID; omit to list all resources of the type"`
Namespace string `json:"namespace,omitempty" jsonschema:"resource namespace; defaults to the type's default namespace"`
Selector string `json:"selector,omitempty"`
}
ResourceQuery selects COSI resources, as `omnictl get`/`talosctl get` do.
Tools describe type and selector with their own examples, see InputSchema.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package imagefactory implements Image Factory tools.
|
Package imagefactory implements Image Factory tools. |
|
Package omni implements Omni tools.
|
Package omni implements Omni tools. |
|
Package talos implements Talos tools, reaching nodes either directly or through Omni.
|
Package talos implements Talos tools, reaching nodes either directly or through Omni. |