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 ¶
- func Register(server *mcp.Server, scope tools.Scope)
- type ListLogicalClustersInput
- type ListLogicalClustersOutput
- type ListPartitionSetsInput
- type ListPartitionSetsOutput
- type ListPartitionsInput
- type ListPartitionsOutput
- type ListShardsInput
- type ListShardsOutput
- type LogicalClusterInfo
- type PartitionInfo
- type PartitionSetInfo
- type ShardInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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.