settings

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 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
	StatusCheck *StatusCheck
}

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
	StatusCheck *StatusCheck
}

type SonarQubeConfig

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

func (*SonarQubeConfig) GetMetricsList

func (c *SonarQubeConfig) GetMetricsList() string

type StatusCheck added in v0.4.0

type StatusCheck struct {
	Name 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