Skip to content
Docs Try Aspire
Docs Try

withGoPrivate

Method
📦 Aspire.Hosting.Go v13.4.0-preview.1.26281.18
interface GoAppResource {
// ... omitted for brevity
withGoPrivate(
privatePatterns: string[],
authHost: string,
usernameArgName?: string,
tokenSecretId?: string): GoAppResource;
}

Signature

method withGoPrivate builder
Configures private Go module authentication for publish-time Dockerfile generation.
withGoPrivate(
privatePatterns: string[],
authHost: string,
usernameArgName?: string,
tokenSecretId?: string): GoAppResource
privatePatterns string[]
authHost string
usernameArgName string optional = GIT_USER
tokenSecretId string optional = gittoken
GoAppResource

Applies to

This method applies to the following types: