gitlabsourceconfig

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 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
	Rollout GitlabSourceRollout
}

GitlabSourceDomains holds the domains to be used with the gitlab source

type GitlabSourceRollout added in v1.15.0

type GitlabSourceRollout struct {
	Stickiness string
	Percentage int
}

GitlabSourceRollout holds the rollout strategy and percentage

Jump to

Keyboard shortcuts

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