config

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

2019-01-07 (cc) <paul4hough@gmail.com>

agate configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Global Global `yaml:"global,omitempty"`
	Remed  Remed  `yaml:"remed,omitempty"`
	Email  Email  `yaml:"email,omitempty"`
	Notify Notify `yaml:"notify,omitempty"`
}

func Load added in v0.3.1

func Load(fn string) (*Config, error)

func New added in v0.3.1

func New() *Config

type Email added in v0.3.1

type Email struct {
	Smtp string `yaml:"smtp,omitempty"`
	From string `yaml:"from,omitempty"`
	To   string `yaml:"to,omitempty"`
}

type Global added in v0.3.1

type Global struct {
	Retry   time.Duration `yaml:"retry,omitempty"`
	DataAge uint          `yaml:"data-age,omitempty"`
}

type NSysGitlab added in v0.9.3

type NSysGitlab struct {
	Url   string `yaml:"url,omitempty"`
	Group string `yaml:"repo"`
	Token string `yaml:"token"`
}

type NSysHpsm added in v0.9.3

type NSysHpsm struct {
	Url      string            `yaml:"url"`
	User     string            `yaml:"user"`
	Pass     string            `yaml:"pass"`
	CreateEp string            `yaml:"create-ep"`
	UpdateEp string            `yaml:"update-ep"`
	CloseEp  string            `yaml:"close-ep"`
	Group    string            `yaml:"workgroup"`
	Defaults map[string]string `yaml:"defaults,omitempty"`
}

type NSysMock added in v0.9.3

type NSysMock struct {
	Url string `yaml:"url"`
}

type Notify added in v0.9.3

type Notify struct {
	Default  string    `yaml:"default,omitempty"`
	Resolved bool      `yaml:"close-resolved,omitempty"`
	Sys      NotifySys `yaml:"systems,omitempty"`
}

type NotifySys added in v0.9.3

type NotifySys struct {
	Gitlab NSysGitlab `yaml:"gitlab,omitempty"`
	Hpsm   NSysHpsm   `yaml:"hpsm,omitempty"`
	Mock   NSysMock   `yaml:"mock,omitempty"`
}

type Remed added in v0.9.3

type Remed struct {
	Parallel       uint   `yaml:"parallel,omitempty"`
	CfgScriptsDir  string `yaml:"scripts-dir,omitempty"`
	CfgPlaybookDir string `yaml:"playbook-dir,omitempty"`
	// derived
	ScriptsDir  string
	PlaybookDir string
}

Jump to

Keyboard shortcuts

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