config

package
v0.0.0-...-75ad633 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpConfiguration

type AmqpConfiguration struct {
	Host       string `json:"host"`
	Port       int    `json:"port"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	VHost      string `json:"vhost"`
	Exchange   string `json:"exchange"`
	Queue      string `json:"queue"`
	RoutingKey string `json:"routing-key"`
	Identifier string `json:"identifier"`
}

type Configuration

type Configuration struct {
	Gotrap gotrapConfiguration `json:"gotrap"`
	Github GithubConfiguration `json:"github"`
	Amqp   AmqpConfiguration   `json:"amqp"`
	Gerrit GerritConfiguration `json:"gerrit"`
}

func NewConfiguration

func NewConfiguration(configFile *string) (*Configuration, error)

type GerritConfiguration

type GerritConfiguration struct {
	URL            string                     `json:"url"`
	Username       string                     `json:"username"`
	Password       string                     `json:"password"`
	Projects       map[string]map[string]bool `json:"projects"`
	ExcludePattern []string                   `json:"exclude-pattern"`
	Comment        []string                   `json:"comment"`
}

type GithubConfiguration

type GithubConfiguration struct {
	APIToken               string                    `json:"api-token"`
	Organisation           string                    `json:"organisation"`
	Repository             string                    `json:"repository"`
	BranchPollingIntervall int                       `json:"branch-polling-intervall"`
	StatusPollingIntervall int                       `json:"status-polling-intervall"`
	PRTemplate             githubPullRequestTemplate `json:"pull-request"`
}

Jump to

Keyboard shortcuts

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