kvstoremesh

package
v1.16.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"kvstoremesh",
	"KVStoreMesh caches remote cluster information in a local kvstore",

	cell.Provide(newKVStoreMesh),

	cell.Config(common.Config{}),
	store.Cell,

	metrics.Metric(common.MetricsProvider("")),
)
View Source
var DefaultConfig = Config{
	PerClusterReadyTimeout: 15 * time.Second,
	GlobalReadyTimeout:     10 * time.Minute,
}

Functions

func RegisterSyncWaiter added in v1.16.0

func RegisterSyncWaiter(p SyncWaiterParams)

Types

type Config added in v1.16.0

type Config struct {
	PerClusterReadyTimeout time.Duration
	GlobalReadyTimeout     time.Duration
}

func (Config) Flags added in v1.16.0

func (def Config) Flags(flags *pflag.FlagSet)

type KVStoreMesh

type KVStoreMesh struct {
	// contains filtered or unexported fields
}

KVStoreMesh is a cache of multiple remote clusters

func (*KVStoreMesh) Start

func (km *KVStoreMesh) Start(ctx cell.HookContext) error

func (*KVStoreMesh) Stop

func (km *KVStoreMesh) Stop(cell.HookContext) error

type SyncWaiterParams added in v1.16.0

type SyncWaiterParams struct {
	cell.In

	KVStoreMesh *KVStoreMesh
	SyncState   syncstate.SyncState
	Lifecycle   cell.Lifecycle
	JobGroup    job.Group
	Health      cell.Health
}

Jump to

Keyboard shortcuts

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