configutil

package
v0.1.330 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package configutil handles application configuration and location and loading of various mapping files.

Introduce new config location at /etc/span/assets/..., load data from file, not from the binary itself (get rid of go-bindata).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GitLabCloneDir   string `yaml:"gitlab.clonedir" env:"SPAN_GITLAB_CLONEDIR" env-default:"/tmp/span-webhookd-clone"`
	GitLabToken      string `yaml:"gitlab.token" env:"SPAN_GITLAB_TOKEN"`
	RedmineToken     string `yaml:"redmine.token" env:"SPAN_REDMINE_TOKEN"`
	RedmineURL       string `yaml:"redmine.url" env:"SPAN_REDMINE_URL"`
	WebhookdHostPort string `yaml:"webhookd.listen" env:"SPAN_WEBHOOKD_LISTEN" env-default:"0.0.0.0:8080"`
	WebhookdLogfile  string `yaml:"webhookd.logfile" env:"SPAN_WEBHOOKD_LOGFILE"`
	WebhookdPath     string `yaml:"webhookd.path" env:"SPAN_WEBHOOKD_PATH" env-default:"trigger"`
	WhatIsLiveURL    string `yaml:"whatislive.url" env:"SPAN_WHATISLIVE_URL"`
}

Config is application configuration of span and its subcommands.

Jump to

Keyboard shortcuts

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