Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsServerlessDomain ¶ added in v1.17.0
IsServerlessDomain checks if a domain requested is a serverless domain we need to handle differently.
Domain is a serverless domain when it matches `serverlessDomainRegex`. The regular expression is also defined on the gitlab-rails side, see https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/serverless/domain.rb#L7
Types ¶
type Config ¶ added in v1.13.0
Config represents an interface that is configuration provider for client capable of comunicating with GitLab
type Domains ¶
type Domains struct {
// contains filtered or unexported fields
}
Domains struct represents a map of all domains supported by pages. It is currently using two sources during the transition to the new GitLab domains source.
func NewDomains ¶
NewDomains is a factory method for domains initializing a mutex. It should not initialize `dm` as we later check the readiness by comparing it with a nil value.
func (*Domains) GetDomain ¶
GetDomain retrieves a domain information from a source. We are using two sources here because it allows us to switch behavior and the domain source for some subset of domains, to test / PoC the new GitLab Domains Source that we plan to use to replace the disk source.
type MockSource ¶ added in v1.13.0
MockSource can be used for testing
func NewMockSource ¶ added in v1.13.0
func NewMockSource() *MockSource
NewMockSource returns a new Source mock for testing