Welcome to mirror list, hosted at ThFree Co, Russian Federation.

lookup_path.go « api « gitlab « source « internal - gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 77b264ff1a6672754b0aa794e5263bbbd06a9b40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package api

// LookupPath represents a lookup path for a virtual domain
type LookupPath struct {
	ProjectID     int    `json:"project_id,omitempty"`
	AccessControl bool   `json:"access_control,omitempty"`
	HTTPSOnly     bool   `json:"https_only,omitempty"`
	Prefix        string `json:"prefix,omitempty"`
	Source        Source `json:"source,omitempty"`
}

// Source describes GitLab Page serving variant
type Source struct {
	Type       string     `json:"type,omitempty"`
	Path       string     `json:"path,omitempty"`
	Serverless Serverless `json:"serverless,omitempty"`
}

// Serverless describes serverless serving configuration
type Serverless struct {
	Service string  `json:"service,omitempty"`
	Cluster Cluster `json:"cluster,omitempty"`
}

// Cluster describes serverless cluster configuration
type Cluster struct {
	Address         string `json:"address,omitempty"`
	Port            string `json:"port,omitempty"`
	Hostname        string `json:"hostname,omitempty"`
	CertificateCert string `json:"cert,omitempty"`
	CertificateKey  string `json:"key,omitempty"`
}