cluster

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterUuidFromContext

func ClusterUuidFromContext(ctx context.Context) types.UUID

ClusterUuidFromContext returns the uuid value of the cluster stored in ctx, if any:

clusterUuid, ok := ClusterUuidFromContext(ctx)
if !ok {
	// Error handling.
}

func NewClusterUuidContext

func NewClusterUuidContext(parent context.Context, clusterUuid types.UUID) context.Context

NewClusterUuidContext creates a new context that carries the provided cluster UUID. The new context is derived from the given parent context and associates the cluster UUID with a predefined key (clusterContextKey).

Types

This section is empty.

Jump to

Keyboard shortcuts

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