context

package
v0.12.78 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterId added in v0.9.1

func GetClusterId(ctx context.Context) (string, error)

GetClusterId retrieves the Cluster ID from the request context

func SetClusterId added in v0.9.1

func SetClusterId(ctx context.Context, clusterId string) context.Context

SetClusterId stores the Cluster ID in the request context

func SetKCPContext

func SetKCPContext(ctx context.Context, kcpCtx KCPContext) context.Context

SetKCPContext stores KCP context information in the request context

Types

type KCPContext

type KCPContext struct {
	IDMTenant        string
	OrganizationName string
}

KCPContext holds KCP-related user information

func GetKCPContext

func GetKCPContext(ctx context.Context) (KCPContext, error)

GetKCPContext retrieves KCP context information from the request context

Jump to

Keyboard shortcuts

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