plugins

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationScopeOwner = "<%application_scope_owner%>"
)

Variables

This section is empty.

Functions

func InitIssue

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

Types

type EmailPlugin

type EmailPlugin struct {
	User          string
	Password      string
	Host          string
	Port          string
	Sender        string
	Recipients    []string
	EmailSettings *settings.Settings
}

func (*EmailPlugin) GetLayoutProvider

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

func (*EmailPlugin) GetSettings

func (email *EmailPlugin) GetSettings() *settings.Settings

func (*EmailPlugin) Init

func (email *EmailPlugin) Init() error

func (*EmailPlugin) Send

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

func (*EmailPlugin) Terminate

func (email *EmailPlugin) Terminate() error

type JiraAPI

type JiraAPI struct {
	Enable bool

	Url       string
	User      string
	Password  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

	JiraSettings *settings.Settings
	// contains filtered or unexported fields
}

func (*JiraAPI) GetLayoutProvider

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

func (*JiraAPI) GetSettings

func (ctx *JiraAPI) GetSettings() *settings.Settings

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 Plugin

type Plugin interface {
	Init() error
	Send(map[string]string) error
	Terminate() error
	GetLayoutProvider() layout.LayoutProvider
	GetSettings() *settings.Settings
}

type ServiceNowPlugin

type ServiceNowPlugin struct {
	User               string
	Password           string
	Instance           string
	Table              string
	ServiceNowSettings *settings.Settings
	// contains filtered or unexported fields
}

func (*ServiceNowPlugin) GetLayoutProvider

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

func (*ServiceNowPlugin) GetSettings

func (sn *ServiceNowPlugin) GetSettings() *settings.Settings

func (*ServiceNowPlugin) Init

func (sn *ServiceNowPlugin) Init() error

func (*ServiceNowPlugin) Send

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

func (*ServiceNowPlugin) Terminate

func (sn *ServiceNowPlugin) Terminate() error

type SlackPlugin

type SlackPlugin struct {
	Url           string
	SlackSettings *settings.Settings
	// contains filtered or unexported fields
}

func (*SlackPlugin) GetLayoutProvider

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

func (*SlackPlugin) GetSettings

func (slack *SlackPlugin) GetSettings() *settings.Settings

func (*SlackPlugin) Init

func (slack *SlackPlugin) Init() error

func (*SlackPlugin) Send

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

func (*SlackPlugin) Terminate

func (slack *SlackPlugin) Terminate() error

type TeamsPlugin

type TeamsPlugin struct {
	TeamsSettings *settings.Settings
	Webhook       string
	// contains filtered or unexported fields
}

func (*TeamsPlugin) GetLayoutProvider

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

func (*TeamsPlugin) GetSettings

func (teams *TeamsPlugin) GetSettings() *settings.Settings

func (*TeamsPlugin) Init

func (teams *TeamsPlugin) Init() error

func (*TeamsPlugin) Send

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

func (*TeamsPlugin) Terminate

func (teams *TeamsPlugin) Terminate() error

type WebhookPlugin

type WebhookPlugin struct {
	Url             string
	WebhookSettings *settings.Settings
}

func (*WebhookPlugin) GetLayoutProvider

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

func (*WebhookPlugin) GetSettings

func (webhook *WebhookPlugin) GetSettings() *settings.Settings

func (*WebhookPlugin) Init

func (webhook *WebhookPlugin) Init() error

func (*WebhookPlugin) Send

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

func (*WebhookPlugin) Terminate

func (webhook *WebhookPlugin) Terminate() error

Jump to

Keyboard shortcuts

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