context

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAPIDomainKey

func WithAPIDomainKey(ctx context.Context, apiDomainKey APIDomainKey) context.Context

WithAPIDomainKey adds an API domain key to the context.

Types

type APIDomainKey

type APIDomainKey string

APIDomainKey is a string key identifying the API domain serving a kube-like API surface. Depending on the dynamic virtual workspace, the structure of the key will vary. The APIDomainKey is usually derived from URL path segments.

func APIDomainKeyFrom

func APIDomainKeyFrom(ctx context.Context) APIDomainKey

APIDomainKeyFrom retrieves the API domain key from the context, if any.

Jump to

Keyboard shortcuts

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