Documentation
¶
Index ¶
- type Gitlab
- type GitlabOptions
- type Google
- type GoogleCalendarOptions
- type GoogleOptions
- type GoogleTokenReponse
- type Grafana
- func (g *Grafana) GetAnnotations() ([]byte, error)
- func (g *Grafana) GetCustomAnnotations(options GrafanaOptions) ([]byte, error)
- func (g *Grafana) GetCustomDashboards(opts GrafanaOptions) ([]byte, error)
- func (g *Grafana) GetDashboards() ([]byte, error)
- func (g *Grafana) RenderCustomImage(opts GrafanaOptions) ([]byte, error)
- func (g *Grafana) RenderImage() ([]byte, error)
- type GrafanaGetAnnotationsOptions
- type GrafanaGetDashboardsOptions
- type GrafanaOptions
- type GrafanaRenderImageOptions
- type Graylog
- type GraylogOptions
- type JSON
- type JSONOptions
- type JSONOutputOptions
- type Jira
- func (j *Jira) CreateCustomIssue(opts JiraOptions) ([]byte, error)
- func (j *Jira) CreateIssue() ([]byte, error)
- func (j *Jira) IssueAddAttachment() ([]byte, error)
- func (j *Jira) IssueAddComment() ([]byte, error)
- func (j *Jira) IssueAddCustomAttachment(opts JiraOptions) ([]byte, error)
- func (j *Jira) IssueAddCustomComment(opts JiraOptions) ([]byte, error)
- type JiraCreateIssue
- type JiraCreateIssueOptions
- type JiraIssueAddAttachmentOptions
- type JiraIssueAddComment
- type JiraIssueAddCommentOptions
- type JiraIssueAssignee
- type JiraIssueFields
- type JiraIssueOptions
- type JiraIssuePriority
- type JiraIssueProject
- type JiraIssueReporter
- type JiraIssueType
- type JiraOptions
- type PipelineOptions
- type PipelineVariableResp
- type PipelinesResp
- type Slack
- func (s *Slack) Send() ([]byte, error)
- func (s *Slack) SendCustom(m SlackMessage) ([]byte, error)
- func (s *Slack) SendCustomFile(m SlackMessage) ([]byte, error)
- func (s *Slack) SendCustomMessage(m SlackMessage) ([]byte, error)
- func (s *Slack) SendFile() ([]byte, error)
- func (s *Slack) SendMessage() ([]byte, error)
- type SlackMessage
- type SlackOptions
- type SlackOutputOptions
- type Telegram
- func (t *Telegram) SendCustomDocument(opts TelegramOptions) ([]byte, error)
- func (t *Telegram) SendCustomMessage(opts TelegramOptions) ([]byte, error)
- func (t *Telegram) SendCustomPhoto(opts TelegramOptions) ([]byte, error)
- func (t *Telegram) SendDocument() ([]byte, error)
- func (t *Telegram) SendMessage() ([]byte, error)
- func (t *Telegram) SendPhoto() ([]byte, error)
- type TelegramDocumentOptions
- type TelegramMessageOptions
- type TelegramOptions
- type TelegramPhotoOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gitlab ¶ added in v0.3.0
type Gitlab struct {
// contains filtered or unexported fields
}
func NewGitlab ¶ added in v0.3.0
func NewGitlab(options GitlabOptions) *Gitlab
func (Gitlab) GetLastPipeline ¶ added in v0.3.0
type GitlabOptions ¶ added in v0.3.0
type Google ¶ added in v0.3.0
type Google struct {
// contains filtered or unexported fields
}
func NewGoogle ¶ added in v0.3.0
func NewGoogle(options GoogleOptions, stdout *common.Stdout) *Google
func (*Google) CalendarGetCustomEvents ¶ added in v0.3.0
func (g *Google) CalendarGetCustomEvents(opts GoogleOptions) ([]byte, error)
func (*Google) CalendarGetEvents ¶ added in v0.3.0
type GoogleCalendarOptions ¶ added in v0.3.0
type GoogleOptions ¶ added in v0.3.0
type GoogleTokenReponse ¶ added in v0.3.0
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) GetAnnotations ¶ added in v0.3.0
func (*Grafana) GetCustomAnnotations ¶ added in v0.3.0
func (g *Grafana) GetCustomAnnotations(options GrafanaOptions) ([]byte, error)
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 (*Grafana) RenderCustomImage ¶ added in v0.2.0
func (g *Grafana) RenderCustomImage(opts GrafanaOptions) ([]byte, error)
func (*Grafana) RenderImage ¶ added in v0.2.0
type GrafanaGetAnnotationsOptions ¶ added in v0.3.0
type GrafanaGetDashboardsOptions ¶ added in v0.2.0
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
GetAnnotationsOptions *GrafanaGetAnnotationsOptions
}
type GrafanaRenderImageOptions ¶ added in v0.2.0
type Graylog ¶
type Graylog struct {
// contains filtered or unexported fields
}
func NewGraylog ¶
func NewGraylog(options GraylogOptions) *Graylog
type GraylogOptions ¶
type JSON ¶ added in v0.2.7
type JSON struct {
// contains filtered or unexported fields
}
func NewJSON ¶ added in v0.2.7
func NewJSON(options JSONOptions) *JSON
type JSONOptions ¶ added in v0.2.7
type JSONOutputOptions ¶ added in v0.2.7
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 (*Jira) IssueAddAttachment ¶ added in v0.2.0
func (*Jira) IssueAddComment ¶ added in v0.2.0
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 JiraIssueAddAttachmentOptions ¶ added in v0.2.0
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 PipelineOptions ¶ added in v0.3.0
type PipelineVariableResp ¶ added in v0.3.0
type PipelinesResp ¶ added in v0.3.0
type PipelinesResp struct {
ID int `json:"id"`
Iid int `json:"iid"`
ProjectID int `json:"project_id"`
Sha string `json:"sha"`
Ref string `json:"ref"`
Status string `json:"status"`
Source string `json:"source"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
WebURL string `json:"web_url"`
}
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func NewSlack ¶
func NewSlack(options SlackOptions) *Slack
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) SendMessage ¶ added in v0.2.0
type SlackMessage ¶ added in v0.2.0
type SlackOptions ¶
type SlackOutputOptions ¶ added in v0.2.0
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 (*Telegram) SendMessage ¶ added in v0.2.1
type TelegramDocumentOptions ¶ added in v0.2.1
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
Click to show internal directories.
Click to hide internal directories.