settings

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Gitea     GiteaConfig
	SonarQube SonarQubeConfig
	Projects  []Project
	Pattern   *PatternConfig
)

Functions

func Load

func Load(configFile string)

Types

type GiteaConfig

type GiteaConfig struct {
	Url     string
	Token   *Token
	Webhook *Webhook
}

type GiteaRepository

type GiteaRepository struct {
	Owner string
	Name  string
}

type PatternConfig

type PatternConfig struct {
	RegExp   *regexp.Regexp
	Template string
}

type Project

type Project struct {
	SonarQube struct {
		Key string
	} `mapstructure:"sonarqube"`
	Gitea GiteaRepository
}

type SonarQubeConfig

type SonarQubeConfig struct {
	Url               string
	Token             *Token
	Webhook           *Webhook
	AdditionalMetrics []string
}

func (*SonarQubeConfig) GetMetricsList

func (c *SonarQubeConfig) GetMetricsList() string

type Token

type Token struct {
	Value string
	// contains filtered or unexported fields
}

func NewToken

func NewToken(extractor func(string) string, confContainer string, errCallback func(string)) *Token

type Webhook

type Webhook struct {
	Secret string
	// contains filtered or unexported fields
}

func NewWebhook

func NewWebhook(extractor func(string) string, confContainer string, errCallback func(string)) *Webhook

Jump to

Keyboard shortcuts

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