Skip to main content

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

NameTypeDescription
ctxcontext.ContextThe existing context to which the project and domain values will be added.
projectstringThe project identifier to be associated with the new context.
domainstringThe domain identifier to be associated with the new context.

Returns

TypeDescription
context.ContextA new context.Context object with the specified project and domain values.