WithNamespace
Gets a new context with namespace set.
def WithNamespace(
ctx: context.Context,
namespace: string
) - > context.Context
Gets a new context with namespace set.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The parent context to which the namespace will be added. |
| namespace | string | The namespace string to be set in the context. |
Returns
| Type | Description |
|---|---|
context.Context | A new context with the specified namespace value associated with NamespaceKey. |