shard

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2025 License: Apache-2.0 Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	// AnnotationKey is the name of the annotation key used to denote an object's shard name.
	AnnotationKey = "kcp.io/shard"
)

Variables

View Source
var (
	// Wildcard is the name indicating cross-shards requests.
	Wildcard = Name("*")
)

Functions

This section is empty.

Types

type Name

type Name string

Name hold the name of a shard. It is used by the cache-server to assign resources to a particular shard.

func New

func New(name string) Name

New returns a new instance of Name from a string.

func (Name) Empty

func (n Name) Empty() bool

Empty returns true if the name of the shard is empty.

func (Name) Path

func (n Name) Path() string

Path returns a path segment for the shard to access its API.

func (Name) String

func (n Name) String() string

String returns the string representation of the shard name.

Jump to

Keyboard shortcuts

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