alertmgr

package
v1.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IssueTypeDefault = "Task"
	PriorityDefault  = "High"

	ServiceNowTableDefault = "incident"
	AnonymizeReplacement   = "<hidden>"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertMgr

type AlertMgr struct {
	// contains filtered or unexported fields
}

func Instance

func Instance() *AlertMgr

func (*AlertMgr) Send

func (ctx *AlertMgr) Send(data string)

func (*AlertMgr) Start

func (ctx *AlertMgr) Start(cfgfile string)

func (*AlertMgr) Terminate

func (ctx *AlertMgr) Terminate()

type PluginSettings

type PluginSettings struct {
	Name            string   `json:"name"`
	Type            string   `json:"type"`
	Enable          bool     `json:"enable"`
	Url             string   `json:"url"`
	User            string   `json:"user"`
	Password        string   `json:"password"`
	TlsVerify       bool     `json:"tls_verify"`
	ProjectKey      string   `json:"project_key,omitempty" structs:"project_key,omitempty"`
	IssueType       string   `json:"issuetype" structs:"issuetype"`
	BoardName       string   `json:"board,omitempty" structs:"board,omitempty"`
	Priority        string   `json:"priority,omitempty"`
	Assignee        []string `json:"assignee,omitempty"`
	Description     string
	Summary         string            `json:"summary,omitempty"`
	FixVersions     []string          `json:"fixVersions,omitempty"`
	AffectsVersions []string          `json:"affectsVersions,omitempty"`
	Labels          []string          `json:"labels,omitempty"`
	Sprint          string            `json:"sprint,omitempty"`
	Unknowns        map[string]string `json:"unknowns" structs:"unknowns,omitempty"`

	Host       string   `json:"host"`
	Port       string   `json:"port"`
	Recipients []string `json:"recipients"`
	Sender     string   `json:"sender"`
	Token      string   `json:"token"`
	UseMX      bool     `json:"useMX"`

	PolicyMinVulnerability string   `json:"Policy-Min-Vulnerability"`
	PolicyRegistry         []string `json:"Policy-Registry"`
	PolicyImageName        []string `json:"Policy-Image-Name"`
	PolicyNonCompliant     bool     `json:"Policy-Non-Compliant"`
	PolicyShowAll          bool     `json:"Policy-Show-All"`

	IgnoreRegistry  []string `json:"Ignore-Registry"`
	IgnoreImageName []string `json:"Ignore-Image-Name"`

	AggregateIssuesNumber  int    `json:"Aggregate-Issues-Number"`
	AggregateIssuesTimeout string `json:"Aggregate-Issues-Timeout"`
	InstanceName           string `json:"instance"`
	PolicyOnlyFixAvailable bool   `json:"Policy-Only-Fix-Available"`

	PolicyOPA []string `json:"Policy-OPA"`

	AquaServer      string `json:"AquaServer"`
	DBMaxSize       int    `json:"Max_DB_Size"`
	DBRemoveOldData int    `json:"Delete_Old_Data"`
	DBTestInterval  int    `json:"DbVerifyInterval"`

	SizeLimit int `json:"SizeLimit"`
}

Jump to

Keyboard shortcuts

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