gitlabsourceconfig

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WatchForGitlabSourceConfigChange

func WatchForGitlabSourceConfigChange(config *GitlabSourceConfig, interval time.Duration)

WatchForGitlabSourceConfigChange polls the filesystem and updates test domains if needed.

Types

type GitlabSourceConfig

type GitlabSourceConfig struct {
	Domains GitlabSourceDomains
}

GitlabSourceConfig holds the configuration for the gitlab source

func (*GitlabSourceConfig) UpdateFromYaml

func (config *GitlabSourceConfig) UpdateFromYaml(content []byte) error

UpdateFromYaml updates the config We use new variable here (instead of using `config` directly) because if `content` is empty `yaml.Unmarshal` does not update the fields already set.

type GitlabSourceDomains

type GitlabSourceDomains struct {
	Enabled []string
	Broken  string
}

GitlabSourceDomains holds the domains to be used with the gitlab source

Jump to

Keyboard shortcuts

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