apis

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package apis provides read tools for the machinery of kcp's API sharing model — APIResourceSchemas and APIConversions. These matter to API providers, not to API consumers, so the toolset is opt-in rather than part of core.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(server *mcp.Server, scope tools.Scope)

Register adds the apis toolset to server, bound to scope.

Types

type APIConversionInfo

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

APIConversionInfo represents an APIConversion in list output.

type APIResourceSchemaInfo

type APIResourceSchemaInfo struct {
	Name    string `json:"name"`
	Group   string `json:"group,omitempty"`
	Kind    string `json:"kind,omitempty"`
	Version string `json:"version,omitempty"`
	Scope   string `json:"scope,omitempty"` // Cluster or Namespaced
}

APIResourceSchemaInfo represents an APIResourceSchema in list output.

type GetAPIResourceSchemaInput

type GetAPIResourceSchemaInput struct {
	Workspace string `json:"workspace"`
	Name      string `json:"name"`
}

GetAPIResourceSchemaInput is the input for get_kcp_apiresourceschema.

type GetAPIResourceSchemaOutput

type GetAPIResourceSchemaOutput struct {
	Object map[string]any `json:"object"`
}

GetAPIResourceSchemaOutput is the output for get_kcp_apiresourceschema.

type ListAPIConversionsInput

type ListAPIConversionsInput struct {
	Workspace string `json:"workspace"`
}

ListAPIConversionsInput is the input for list_kcp_apiconversions.

type ListAPIConversionsOutput

type ListAPIConversionsOutput struct {
	APIConversions []APIConversionInfo `json:"apiConversions"`
	Count          int                 `json:"count"`
}

ListAPIConversionsOutput is the output for list_kcp_apiconversions.

type ListAPIResourceSchemasInput

type ListAPIResourceSchemasInput struct {
	Workspace string `json:"workspace"`
}

ListAPIResourceSchemasInput is the input for list_kcp_apiresourceschemas.

type ListAPIResourceSchemasOutput

type ListAPIResourceSchemasOutput struct {
	Schemas []APIResourceSchemaInfo `json:"schemas"`
	Count   int                     `json:"count"`
}

ListAPIResourceSchemasOutput is the output for list_kcp_apiresourceschemas.

Jump to

Keyboard shortcuts

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