WithProjectDomain
Gets a new context with Project and Domain values set.
def WithProjectDomain(
ctx: context.Context,
project: string,
domain: string
) - > context.Context
Gets a new context with Project and Domain values set. This function is used to propagate project and domain information through the context.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The existing context to which the project and domain values will be added. |
| project | string | The project identifier to be associated with the new context. |
| domain | string | The domain identifier to be associated with the new context. |
Returns
| Type | Description |
|---|---|
context.Context | A new context.Context object with the specified project and domain values. |