Documentation
¶
Index ¶
Constants ¶
View Source
const ( DownloadedModulesDir = "DOWNLOADED_MODULES_DIR" EmbeddedModulesDir = "EMBEDDED_MODULES_DIR" // DocumentationBuildTimeout caps a single upload+build round-trip from the // module-documentation controller to a docs-builder. Every build triggers a // full-site Hugo rebuild serialized across all modules, so this must exceed // the worst-case build time; too low a value cancels healthy builds and // churns the builder. A Go duration string (e.g. "120s", "2m"). DocumentationBuildTimeout = "DOCUMENTATION_BUILD_TIMEOUT" )
Variables ¶
This section is empty.
Functions ¶
func GetDocumentationBuildTimeout ¶ added in v1.76.10
GetDocumentationBuildTimeout is the per-request timeout the module-documentation controller applies to docs-builder upload/build calls. It parses DOCUMENTATION_BUILD_TIMEOUT as a Go duration (per time.ParseDuration) and falls back to 120s when the variable is unset, empty, or unparseable.
func GetDownloadedModulesDir ¶
func GetDownloadedModulesDir() string
func GetEmbeddedModulesDir ¶ added in v1.76.3
func GetEmbeddedModulesDir() string
GetEmbeddedModulesDir returns the directory where embedded (built-in) modules are shipped within the Deckhouse image. It is the first entry of the module search path, so a module present here always wins over a downloaded one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.