Discover Packages
gitlab.com/gitlab-org/gitlab-pages
internal
source
disk
package
Version:
v1.32.0
Opens a new window with list of versions in this module.
Published: Dec 16, 2020
License: MIT
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Watch polls the filesystem and kicks off a new domain directory scan when needed.
Disk struct represents a map of all domains supported by pages that are
stored on a disk with corresponding `config.json`.
New is a factory method for the Disk source. It is initializing a mutex. It
should not initialize `dm` as we later check the readiness by comparing it
with a nil value.
func (*Disk) GetDomain ¶
added in
v1.13.0
GetDomain returns a domain from the domains map if it exists
IsReady checks if the domains source is ready for work. The disk source is
ready after traversing entire filesystem and reading all domains'
configuration files.
Read starts the domain source, in this case it is reading domains from
groups on disk concurrently.
Group represents a GitLab group with project configs and subgroups
Resolve tries to find project and its config recursively for a given request
to a group domain
Map maps domain names to Domain instances.
ReadGroups walks the pages directory and populates dm with all the domains it finds.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.