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.
Click to show internal directories.
Click to hide internal directories.