config

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 0 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// ANNOTATION_CONFIG_LOAD annotation for config loading set
	ANNOTATION_CONFIG_LOAD string = "config.load"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHook

type CommandHook struct {
	Path    string `yaml:"path"`
	Command string `yaml:"cmd"`
}

CommandHook is a hook

type Config

type Config struct {
	Current        string          `yaml:"current"`
	Language       string          `yaml:"language,omitempty"`
	JenkinsServers []JenkinsServer `yaml:"jenkins_servers"`
	PreHooks       []CommandHook   `yaml:"preHooks,omitempty"`
	PostHooks      []CommandHook   `yaml:"postHooks,omitempty"`
	PluginSuites   []PluginSuite   `yaml:"pluginSuites,omitempty"`
	Mirrors        []JenkinsMirror `yaml:"mirrors"`
}

Config is a global config struct

type JenkinsMirror

type JenkinsMirror struct {
	Name string
	URL  string
}

JenkinsMirror represents the mirror of Jenkins

type JenkinsServer

type JenkinsServer struct {
	Name               string            `yaml:"name"`
	URL                string            `yaml:"url"`
	UserName           string            `yaml:"username"`
	Token              string            `yaml:"token"`
	Proxy              string            `yaml:"proxy,omitempty"`
	ProxyAuth          string            `yaml:"proxyAuth,omitempty"`
	InsecureSkipVerify bool              `yaml:"insecureSkipVerify,omitempty"`
	Description        string            `yaml:"description,omitempty"`
	Data               map[string]string `yaml:"data,omitempty"`
}

JenkinsServer holds the configuration of your Jenkins

type PluginSuite

type PluginSuite struct {
	Name        string   `yaml:"name"`
	Plugins     []string `yaml:"plugins"`
	Description string   `yaml:"description"`
}

PluginSuite define a suite of plugins

Jump to

Keyboard shortcuts

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