sharding

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ShardAnnotation = "sharding.projectsveltos.io/key"
)

Variables

This section is empty.

Functions

func IsShardAMatch

func IsShardAMatch(shardKey string, cluster client.Object) bool

IsShardAMatch returns true if a cluster is a shard match.

func RegisterClusterShard

func RegisterClusterShard(ctx context.Context, c client.Client, component sveltosv1alpha1.Component,
	feature, shard, clusterNamespace, clusterName string, clusterType sveltosv1alpha1.ClusterType) (bool, error)

RegisterClusterShard register a cluster,shard pair. feature is a string representing the entity requesting the tracking. component indicates the sveltos component requesting it. returns a bool indicating whether the cluster:shard pair has changed and an error if any occurred

Types

This section is empty.

Jump to

Keyboard shortcuts

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