blob: 09cd06b9ad1c8df99c5a427c7f62b64323f6f5f2 (
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
|
package gitlab
import (
"errors"
"net/http"
"gitlab.com/gitlab-org/gitlab-pages/internal/domain"
"gitlab.com/gitlab-org/gitlab-pages/internal/serving"
)
// Gitlab source represent a new domains configuration source. We fetch all the
// information about domains from GitLab instance.
type Gitlab struct {
client Client
cache Cache
}
// New returns a new instance of gitlab domain source.
func New() *Gitlab {
return &Gitlab{}
}
// GetDomain return a representation of a domain that we have fetched from
// GitLab
func (g *Gitlab) GetDomain(name string) (*domain.Domain, error) {
return nil, errors.New("not implemented")
}
// Resolve is supposed to get the serving lookup path based on the request from
// the GitLab source
func (g *Gitlab) Resolve(*http.Request) (*serving.LookupPath, string, error) {
return nil, "", nil
}
|