context

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountInfo

func GetAccountInfo(ctx context.Context) (*accountsv1alpha1.AccountInfo, error)

GetAccountInfo retrieves account info from the request context

func SetAccountInfo

func SetAccountInfo(ctx context.Context, ai *accountsv1alpha1.AccountInfo) context.Context

SetAccountInfo stores account info 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