package catalogue import ( "strings" ) // A provider's consumers' credentials reach it in a file its machine's provisioner client fills (novox/hq ADR 0373, // issue 679): `${consumers:}`, which only a provider's template may hold, for a provision it provides, in a // file of mode 0600 owned at runtime; filled by the client alone, so a module not handed to it on a machine is // refused there rather than written the placeholder's text, or nothing. func builtProvider(text string) []Built { return []Built{{Name: "files", Kind: ArtifactArchive, Reference: ArtifactStoreScheme + "db/files/blobs/sha256:" + strings.Repeat("f", 64), Digest: "sha256:" + strings.Repeat("f", 64), Texts: map[string]string{"consumers.json": text}}} }