config

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Redhat map[string]RedhatWatchCve `toml:"redhat"`
	EMail  SMTPConf
	Slack  SlackConf
}

type RedhatWatchCve

type RedhatWatchCve struct {
	ThreatSeverity  bool `toml:"threat_severity"`
	Bugzilla        bool `toml:"bugzilla"`
	Cvss            bool `toml:"cvss"`
	Cvss3           bool `toml:"cvss3"`
	Statement       bool `toml:"statement"`
	Acknowledgement bool `toml:"acknowledgement"`
	Mitigation      bool `toml:"mitigation"`
	AffectedRelease bool `toml:"affected_release"`
	PackageState    bool `toml:"package_state"`
	Reference       bool `toml:"reference"`
	Details         bool `toml:"details"`
}

type SMTPConf

type SMTPConf struct {
	SMTPAddr string
	SMTPPort string `valid:"port"`

	User          string
	Password      string
	From          string
	To            []string
	Cc            []string
	SubjectPrefix string

	UseThisTime bool
}

SMTPConf is smtp config

type SlackConf

type SlackConf struct {
	HookURL   string `valid:"url"`
	Channel   string `json:"channel"`
	IconEmoji string `json:"icon_emoji"`
	AuthUser  string `json:"username"`

	NotifyUsers []string
	Text        string `json:"text"`

	UseThisTime bool
}

SlackConf is slack config

Jump to

Keyboard shortcuts

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