gitlab

package
v1.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDiskDisabled = errors.New("gitlab: disk access is disabled via enable-disk=false")
)

Functions

This section is empty.

Types

type Gitlab

type Gitlab struct {
	// contains filtered or unexported fields
}

Gitlab source represent a new domains configuration source. We fetch all the information about domains from GitLab instance.

func New

func New(cfg *config.GitLab) (*Gitlab, error)

New returns a new instance of gitlab domain source.

func (*Gitlab) GetDomain

func (g *Gitlab) GetDomain(ctx context.Context, name string) (*domain.Domain, error)

GetDomain return a representation of a domain that we have fetched from GitLab

func (*Gitlab) Resolve

func (g *Gitlab) Resolve(r *http.Request) (*serving.Request, error)

Resolve is supposed to return the serving request containing lookup path, subpath for a given lookup and the serving itself created based on a request from GitLab pages domains source

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL