Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// GetLookup retrives an VirtualDomain from GitLab API and wraps it into Lookup
GetLookup(ctx context.Context, domain string) Lookup
}
Client represents an interface we use to retrieve information from GitLab
type Cluster ¶ added in v1.17.0
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"`
}
Cluster describes serverless cluster configuration
type Lookup ¶
type Lookup struct {
Name string
Error error
Domain *VirtualDomain
}
Lookup defines an API lookup action with a response that GitLab sends
type LookupPath ¶
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"`
}
LookupPath represents a lookup path for a virtual domain
type Resolver ¶
type Resolver interface {
// Resolve retrives an VirtualDomain from GitLab API and wraps it into Lookup
Resolve(ctx context.Context, domain string) *Lookup
}
Resolver represents an interface we use to retrieve information from GitLab in a more generic way. It can be a concrete API client or cached client.
type Serverless ¶ added in v1.17.0
type Serverless struct {
Service string `json:"service,omitempty"`
Cluster Cluster `json:"cluster,omitempty"`
}
Serverless describes serverless serving configuration
type Source ¶ added in v1.17.0
type Source struct {
Type string `json:"type,omitempty"`
Path string `json:"path,omitempty"`
Serverless Serverless `json:"serverless,omitempty"`
}
Source describes GitLab Page serving variant
type VirtualDomain ¶
type VirtualDomain struct {
Certificate string `json:"certificate,omitempty"`
Key string `json:"key,omitempty"`
LookupPaths []LookupPath `json:"lookup_paths"`
}
VirtualDomain represents a GitLab Pages virtual domain that is being sent from GitLab API
Click to show internal directories.
Click to hide internal directories.