outputs

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubernetesLabelKey      = "labels"
	KubernetesAnnotationKey = "annotations"
)
View Source
const (
	ApplicationScopeOwner = "<%application_scope_owner%>"
)
View Source
const (
	NotConfiguredSprintId = -1
)

Variables

This section is empty.

Functions

func InitIssue

func InitIssue(c *jira.Client, metaProject *jira.MetaProject, metaIssuetype *jira.MetaIssueType, fieldsConfig map[string]string, useSrvApi bool) (*jira.Issue, error)

func IsK8s added in v2.3.0

func IsK8s() bool

Types

type DockerClient added in v2.3.0

type DockerClient struct {
	Name      string
	ImageName string
	Cmd       []string
	Volumes   map[string]string
	Network   string
	Env       []string
	// contains filtered or unexported fields
}

func (DockerClient) GetLayoutProvider added in v2.3.0

func (d DockerClient) GetLayoutProvider() layout.LayoutProvider

func (DockerClient) GetName added in v2.3.0

func (d DockerClient) GetName() string

func (*DockerClient) Init added in v2.3.0

func (d *DockerClient) Init() error

func (DockerClient) Send added in v2.3.0

func (d DockerClient) Send(m map[string]string) error

func (DockerClient) Terminate added in v2.3.0

func (d DockerClient) Terminate() error

type EmailOutput

type EmailOutput struct {
	Name       string
	User       string
	Password   string
	Host       string
	Port       int
	Sender     string
	Recipients []string
	UseMX      bool
	// contains filtered or unexported fields
}

func (*EmailOutput) GetLayoutProvider

func (email *EmailOutput) GetLayoutProvider() layout.LayoutProvider

func (*EmailOutput) GetName

func (email *EmailOutput) GetName() string

func (*EmailOutput) Init

func (email *EmailOutput) Init() error

func (*EmailOutput) Send

func (email *EmailOutput) Send(content map[string]string) error

func (*EmailOutput) Terminate

func (email *EmailOutput) Terminate() error

type ExecClient added in v2.1.0

type ExecClient struct {
	ExecCmd    execCmd
	Name       string
	Env        []string
	InputFile  string
	ExecScript string
	Output     []byte
}

func (*ExecClient) GetLayoutProvider added in v2.1.0

func (e *ExecClient) GetLayoutProvider() layout.LayoutProvider

func (*ExecClient) GetName added in v2.1.0

func (e *ExecClient) GetName() string

func (*ExecClient) Init added in v2.1.0

func (e *ExecClient) Init() error

func (*ExecClient) Send added in v2.1.0

func (e *ExecClient) Send(m map[string]string) error

func (*ExecClient) Terminate added in v2.1.0

func (e *ExecClient) Terminate() error

type HTTPClient added in v2.1.0

type HTTPClient struct {
	Name        string
	Client      http.Client
	URL         *url.URL
	Method      string
	BodyFile    string
	BodyContent string
	Headers     map[string][]string
}

func (HTTPClient) GetLayoutProvider added in v2.1.0

func (hc HTTPClient) GetLayoutProvider() layout.LayoutProvider

func (*HTTPClient) GetName added in v2.1.0

func (hc *HTTPClient) GetName() string

func (*HTTPClient) Init added in v2.1.0

func (hc *HTTPClient) Init() error

func (HTTPClient) Send added in v2.1.0

func (hc HTTPClient) Send(m map[string]string) error

func (HTTPClient) Terminate added in v2.1.0

func (hc HTTPClient) Terminate() error

type JiraAPI

type JiraAPI struct {
	Name            string
	Url             string
	User            string
	Password        string
	Token           string
	TlsVerify       bool
	Issuetype       string
	ProjectKey      string
	Priority        string
	Assignee        []string
	Description     string
	Summary         string
	SprintName      string
	SprintId        int
	FixVersions     []string
	AffectsVersions []string
	Labels          []string
	Unknowns        map[string]string
	BoardName       string
	// contains filtered or unexported fields
}

func (*JiraAPI) GetLayoutProvider

func (jira *JiraAPI) GetLayoutProvider() layout.LayoutProvider

func (*JiraAPI) GetName

func (ctx *JiraAPI) GetName() string

func (*JiraAPI) Init

func (ctx *JiraAPI) Init() error

func (*JiraAPI) Send

func (ctx *JiraAPI) Send(content map[string]string) error

func (*JiraAPI) Terminate

func (ctx *JiraAPI) Terminate() error

type KubernetesClient added in v2.2.0

type KubernetesClient struct {
	Name              string
	KubeNamespace     string
	KubeConfigFile    string
	KubeLabelSelector string
	KubeActions       map[string]map[string]string
	// contains filtered or unexported fields
}

func (KubernetesClient) GetLayoutProvider added in v2.2.0

func (k KubernetesClient) GetLayoutProvider() layout.LayoutProvider

func (KubernetesClient) GetName added in v2.2.0

func (k KubernetesClient) GetName() string

func (*KubernetesClient) Init added in v2.2.0

func (k *KubernetesClient) Init() error

func (KubernetesClient) Send added in v2.2.0

func (k KubernetesClient) Send(m map[string]string) error

func (KubernetesClient) Terminate added in v2.2.0

func (k KubernetesClient) Terminate() error

type NexusIqOutput added in v2.3.0

type NexusIqOutput struct {
	Name           string
	Url            string
	User           string
	Password       string
	OrganizationId string
}

func (*NexusIqOutput) GetLayoutProvider added in v2.3.0

func (nexus *NexusIqOutput) GetLayoutProvider() layout.LayoutProvider

func (*NexusIqOutput) GetName added in v2.3.0

func (nexus *NexusIqOutput) GetName() string

func (*NexusIqOutput) Init added in v2.3.0

func (nexus *NexusIqOutput) Init() error

func (*NexusIqOutput) Send added in v2.3.0

func (nexus *NexusIqOutput) Send(content map[string]string) error

func (*NexusIqOutput) Terminate added in v2.3.0

func (nexus *NexusIqOutput) Terminate() error

type Output

type Output interface {
	GetName() string
	Init() error
	Send(map[string]string) error
	Terminate() error
	GetLayoutProvider() layout.LayoutProvider
}

type ServiceNowOutput

type ServiceNowOutput struct {
	Name     string
	User     string
	Password string
	Instance string
	Table    string
	// contains filtered or unexported fields
}

func (*ServiceNowOutput) GetLayoutProvider

func (sn *ServiceNowOutput) GetLayoutProvider() layout.LayoutProvider

func (*ServiceNowOutput) GetName

func (sn *ServiceNowOutput) GetName() string

func (*ServiceNowOutput) Init

func (sn *ServiceNowOutput) Init() error

func (*ServiceNowOutput) Send

func (sn *ServiceNowOutput) Send(content map[string]string) error

func (*ServiceNowOutput) Terminate

func (sn *ServiceNowOutput) Terminate() error

type SlackOutput

type SlackOutput struct {
	Name       string
	AquaServer string
	Url        string
	// contains filtered or unexported fields
}

func (*SlackOutput) GetLayoutProvider

func (slack *SlackOutput) GetLayoutProvider() layout.LayoutProvider

func (*SlackOutput) GetName

func (slack *SlackOutput) GetName() string

func (*SlackOutput) Init

func (slack *SlackOutput) Init() error

func (*SlackOutput) Send

func (slack *SlackOutput) Send(input map[string]string) error

func (*SlackOutput) Terminate

func (slack *SlackOutput) Terminate() error

type SplunkOutput

type SplunkOutput struct {
	Name       string
	Url        string
	Token      string
	EventLimit int
	// contains filtered or unexported fields
}

func (*SplunkOutput) GetLayoutProvider

func (splunk *SplunkOutput) GetLayoutProvider() layout.LayoutProvider

func (*SplunkOutput) GetName

func (splunk *SplunkOutput) GetName() string

func (*SplunkOutput) Init

func (splunk *SplunkOutput) Init() error

func (*SplunkOutput) Send

func (splunk *SplunkOutput) Send(d map[string]string) error

func (*SplunkOutput) Terminate

func (splunk *SplunkOutput) Terminate() error

type StdoutOutput

type StdoutOutput struct {
	Name string
}

func (StdoutOutput) GetLayoutProvider

func (stdout StdoutOutput) GetLayoutProvider() layout.LayoutProvider

func (StdoutOutput) GetName

func (stdout StdoutOutput) GetName() string

func (StdoutOutput) Init

func (stdout StdoutOutput) Init() error

func (StdoutOutput) Send

func (stdout StdoutOutput) Send(data map[string]string) error

func (StdoutOutput) Terminate

func (stdout StdoutOutput) Terminate() error

type TeamsOutput

type TeamsOutput struct {
	Name       string
	AquaServer string

	Webhook string
	// contains filtered or unexported fields
}

func (*TeamsOutput) GetLayoutProvider

func (teams *TeamsOutput) GetLayoutProvider() layout.LayoutProvider

func (*TeamsOutput) GetName

func (teams *TeamsOutput) GetName() string

func (*TeamsOutput) Init

func (teams *TeamsOutput) Init() error

func (*TeamsOutput) Send

func (teams *TeamsOutput) Send(input map[string]string) error

func (*TeamsOutput) Terminate

func (teams *TeamsOutput) Terminate() error

type WebhookOutput

type WebhookOutput struct {
	Name    string
	Url     string
	Timeout string
}

func (*WebhookOutput) GetLayoutProvider

func (webhook *WebhookOutput) GetLayoutProvider() layout.LayoutProvider

func (*WebhookOutput) GetName

func (webhook *WebhookOutput) GetName() string

func (*WebhookOutput) Init

func (webhook *WebhookOutput) Init() error

func (*WebhookOutput) Send

func (webhook *WebhookOutput) Send(content map[string]string) error

func (*WebhookOutput) Terminate

func (webhook *WebhookOutput) Terminate() error

Jump to

Keyboard shortcuts

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