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: de200e37448c468e793216c4576bc5ff01d9ae4d (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
33
34
35
36
37
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 describeg serverless serving configuration
type Serverless struct {
	Function function `json:"function,omitempty"`
	Cluster  cluster  `json:"cluster,omitempty"`
}

type function struct {
	Name      string `json:"name,omitempty"`
	Domain    string `json:"domain,omitempty"`
	Namespace string `json:"namespace,omitempty"`
}

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"`
}