vendors

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: MIT Imports: 15 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grafana added in v0.2.0

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

func NewGrafana added in v0.2.0

func NewGrafana(options GrafanaOptions) *Grafana

func (*Grafana) GetCustomDashboards added in v0.2.0

func (g *Grafana) GetCustomDashboards(opts GrafanaOptions) ([]byte, error)

func (*Grafana) GetDashboards added in v0.2.0

func (g *Grafana) GetDashboards() ([]byte, error)

func (*Grafana) RenderCustomImage added in v0.2.0

func (g *Grafana) RenderCustomImage(opts GrafanaOptions) ([]byte, error)

func (*Grafana) RenderImage added in v0.2.0

func (g *Grafana) RenderImage() ([]byte, error)

type GrafanaGetDashboardsOptions added in v0.2.0

type GrafanaGetDashboardsOptions struct {
	PanelID string
	From    string
	To      string
}

type GrafanaOptions added in v0.2.0

type GrafanaOptions struct {
	URL                  string
	Timeout              int
	Insecure             bool
	ApiKey               string
	OrgID                string
	UID                  string
	Slug                 string
	RenderImageOptions   *GrafanaRenderImageOptions
	GetDashboardsOptions *GrafanaGetDashboardsOptions
}

type GrafanaRenderImageOptions added in v0.2.0

type GrafanaRenderImageOptions struct {
	PanelID string
	From    string
	To      string
	Width   int
	Height  int
}

type Graylog

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

func NewGraylog

func NewGraylog(options GraylogOptions) *Graylog

func (*Graylog) GetLogs added in v0.2.0

func (g *Graylog) GetLogs() ([]byte, error)

type GraylogOptions

type GraylogOptions struct {
	URL       string
	Timeout   int
	Insecure  bool
	User      string
	Password  string
	Streams   string
	Query     string
	RangeType string
	Sort      string
	Limit     int
	From      string
	To        string
	Range     string
}

type Jira added in v0.1.0

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

func NewJira added in v0.1.0

func NewJira(options JiraOptions) *Jira

func (*Jira) CreateCustomIssue added in v0.2.0

func (j *Jira) CreateCustomIssue(opts JiraOptions) ([]byte, error)

func (*Jira) CreateIssue added in v0.2.0

func (j *Jira) CreateIssue() ([]byte, error)

func (*Jira) IssueAddAttachment added in v0.2.0

func (j *Jira) IssueAddAttachment() ([]byte, error)

func (*Jira) IssueAddComment added in v0.2.0

func (j *Jira) IssueAddComment() ([]byte, error)

func (*Jira) IssueAddCustomAttachment added in v0.2.0

func (j *Jira) IssueAddCustomAttachment(opts JiraOptions) ([]byte, error)

func (*Jira) IssueAddCustomComment added in v0.2.0

func (j *Jira) IssueAddCustomComment(opts JiraOptions) ([]byte, error)

type JiraCreateIssue added in v0.2.0

type JiraCreateIssue struct {
	Fields *JiraIssueFields `json:"fields"`
}

type JiraCreateIssueOptions added in v0.2.0

type JiraCreateIssueOptions struct {
	ProjectKey  string
	Type        string
	Summary     string
	Description string
	Priority    string
	Labels      []string
	Assignee    string
	Reporter    string
}

type JiraIssueAddAttachmentOptions added in v0.2.0

type JiraIssueAddAttachmentOptions struct {
	File string
	Name string
}

type JiraIssueAddComment added in v0.2.0

type JiraIssueAddComment struct {
	Body string `json:"body"`
}

type JiraIssueAddCommentOptions added in v0.2.0

type JiraIssueAddCommentOptions struct {
	Body string
}

type JiraIssueAssignee added in v0.2.0

type JiraIssueAssignee struct {
	Name string `json:"name"`
}

type JiraIssueFields added in v0.2.0

type JiraIssueFields struct {
	Project     *JiraIssueProject  `json:"project"`
	IssueType   *JiraIssueType     `json:"issuetype"`
	Summary     string             `json:"summary"`
	Description string             `json:"description"`
	Labels      []string           `json:"labels"`
	Priority    *JiraIssuePriority `json:"priority,omitempty"`
	Assignee    *JiraIssueAssignee `json:"assignee,omitempty"`
	Reporter    *JiraIssueReporter `json:"reporter,omitempty"`
}

type JiraIssueOptions added in v0.2.0

type JiraIssueOptions struct {
	IdOrKey string
}

type JiraIssuePriority added in v0.2.0

type JiraIssuePriority struct {
	Name string `json:"name"`
}

type JiraIssueProject added in v0.2.0

type JiraIssueProject struct {
	Key string `json:"key"`
}

type JiraIssueReporter added in v0.2.0

type JiraIssueReporter struct {
	Name string `json:"name"`
}

type JiraIssueType added in v0.2.0

type JiraIssueType struct {
	Name string `json:"name"`
}

type JiraOptions added in v0.1.0

type JiraOptions struct {
	URL                       string
	Timeout                   int
	Insecure                  bool
	User                      string
	Password                  string
	CreateIssueOptions        *JiraCreateIssueOptions
	IssueOptions              *JiraIssueOptions
	IssueAddCommentOptions    *JiraIssueAddCommentOptions
	IssueAddAttachmentOptions *JiraIssueAddAttachmentOptions
}

type Slack

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

func NewSlack

func NewSlack(options SlackOptions) *Slack

func (*Slack) Send

func (s *Slack) Send() ([]byte, error)

func (*Slack) SendCustom

func (s *Slack) SendCustom(m SlackMessage) ([]byte, error)

func (*Slack) SendCustomFile

func (s *Slack) SendCustomFile(m SlackMessage) ([]byte, error)

func (*Slack) SendCustomMessage added in v0.2.1

func (s *Slack) SendCustomMessage(m SlackMessage) ([]byte, error)

func (*Slack) SendFile

func (s *Slack) SendFile() ([]byte, error)

func (*Slack) SendMessage added in v0.2.0

func (s *Slack) SendMessage() ([]byte, error)

type SlackMessage added in v0.2.0

type SlackMessage struct {
	Token       string
	Channel     string
	ParentTS    string
	Title       string
	Message     string
	ImageURL    string
	FileName    string
	FileContent string
}

type SlackOptions

type SlackOptions struct {
	Timeout  int
	Insecure bool
	Token    string
	Channel  string
	Title    string
	Message  string
	FileName string
	File     string // content or path to file
	ImageURL string
	ParentTS string
}

type SlackOutputOptions added in v0.2.0

type SlackOutputOptions struct {
	Output      string // path to output if empty to stdout
	OutputQuery string
}

type Telegram

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

func NewTelegram

func NewTelegram(options TelegramOptions) *Telegram

func (*Telegram) SendCustomDocument added in v0.2.0

func (t *Telegram) SendCustomDocument(opts TelegramOptions) ([]byte, error)

func (*Telegram) SendCustomMessage added in v0.2.1

func (t *Telegram) SendCustomMessage(opts TelegramOptions) ([]byte, error)

func (*Telegram) SendCustomPhoto added in v0.2.0

func (t *Telegram) SendCustomPhoto(opts TelegramOptions) ([]byte, error)

func (*Telegram) SendDocument added in v0.2.0

func (t *Telegram) SendDocument() ([]byte, error)

func (*Telegram) SendMessage added in v0.2.1

func (t *Telegram) SendMessage() ([]byte, error)

func (*Telegram) SendPhoto added in v0.2.0

func (t *Telegram) SendPhoto() ([]byte, error)

type TelegramDocumentOptions added in v0.2.1

type TelegramDocumentOptions struct {
	Caption string
	Name    string
	Content string
}

type TelegramMessageOptions added in v0.2.1

type TelegramMessageOptions struct {
	Text string
}

type TelegramOptions

type TelegramOptions struct {
	IDToken               string
	ChatID                string
	Timeout               int
	Insecure              bool
	DisableNotification   bool
	ParseMode             string
	DisableWebPagePreview bool
	MessageOptions        *TelegramMessageOptions
	PhotoOptions          *TelegramPhotoOptions
	DocumentOptions       *TelegramDocumentOptions
}

type TelegramPhotoOptions added in v0.2.1

type TelegramPhotoOptions struct {
	Caption string
	Name    string
	Content string
}

Jump to

Keyboard shortcuts

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