admin

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 admin provides read tools for kcp operator internals — LogicalClusters, Shards, Partitions and PartitionSets. Shards and topology objects exist only in the root workspace, so these tools are noise for ordinary users and the toolset is opt-in.

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 admin toolset to server, bound to scope.

Types

type ListLogicalClustersInput

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

ListLogicalClustersInput is the input for list_kcp_logicalclusters.

type ListLogicalClustersOutput

type ListLogicalClustersOutput struct {
	LogicalClusters []LogicalClusterInfo `json:"logicalClusters"`
	Count           int                  `json:"count"`
}

ListLogicalClustersOutput is the output for list_kcp_logicalclusters.

type ListPartitionSetsInput

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

ListPartitionSetsInput is the input for list_kcp_partitionsets.

type ListPartitionSetsOutput

type ListPartitionSetsOutput struct {
	PartitionSets []PartitionSetInfo `json:"partitionSets"`
	Count         int                `json:"count"`
}

ListPartitionSetsOutput is the output for list_kcp_partitionsets.

type ListPartitionsInput

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

ListPartitionsInput is the input for list_kcp_partitions.

type ListPartitionsOutput

type ListPartitionsOutput struct {
	Partitions []PartitionInfo `json:"partitions"`
	Count      int             `json:"count"`
}

ListPartitionsOutput is the output for list_kcp_partitions.

type ListShardsInput

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

ListShardsInput is the input for list_kcp_shards.

type ListShardsOutput

type ListShardsOutput struct {
	Shards []ShardInfo `json:"shards"`
	Count  int         `json:"count"`
}

ListShardsOutput is the output for list_kcp_shards.

type LogicalClusterInfo

type LogicalClusterInfo struct {
	Name  string `json:"name"`
	Phase string `json:"phase,omitempty"`
	URL   string `json:"url,omitempty"`
}

LogicalClusterInfo represents a LogicalCluster in list output.

type PartitionInfo

type PartitionInfo struct {
	Name     string            `json:"name"`
	Selector map[string]string `json:"selector,omitempty"`
}

PartitionInfo represents a Partition in list output.

type PartitionSetInfo

type PartitionSetInfo struct {
	Name       string `json:"name"`
	Dimensions int    `json:"dimensions,omitempty"`
}

PartitionSetInfo represents a PartitionSet in list output.

type ShardInfo

type ShardInfo struct {
	Name        string `json:"name"`
	BaseURL     string `json:"baseURL,omitempty"`
	ExternalURL string `json:"externalURL,omitempty"`
}

ShardInfo represents a Shard in list output.

Jump to

Keyboard shortcuts

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