vendors

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 18 Imported by: 8

Documentation

Index

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, error)

func (*Gitlab) CustomPipelineGetVariables added in v0.4.3

func (g *Gitlab) CustomPipelineGetVariables(gitlabOptions GitlabOptions, pipelineOptions GitlabPipelineOptions,
	pipelineGetVariablesOptions GitlabPipelineGetVariablesOptions) ([]byte, error)

func (Gitlab) GetLastPipeline added in v0.3.0

func (g Gitlab) GetLastPipeline(project int, ref string) ([]byte, error)

func (Gitlab) GetLastPipelineVariables added in v0.3.0

func (g Gitlab) GetLastPipelineVariables(project int, ref string) ([]byte, error)

func (*Gitlab) PipelineGetVariables added in v0.4.3

func (g *Gitlab) PipelineGetVariables(pipelineOptions GitlabPipelineOptions, pipelineGetVariablesOptions GitlabPipelineGetVariablesOptions) ([]byte, error)

type GitlabOptions added in v0.3.0

type GitlabOptions struct {
	Timeout  int
	Insecure bool
	URL      string
	Token    string
}

type GitlabPipelineGetVariablesOptions added in v0.4.3

type GitlabPipelineGetVariablesOptions struct {
	Query []string
}

type GitlabPipelineOptions added in v0.4.3

type GitlabPipelineOptions struct {
	ProjectID int
	Scope     string
	Status    string
	Ref       string
	OrderBy   string
	Sort      string
	Limit     int
}

type GitlabPipelineVariableResp added in v0.4.3

type GitlabPipelineVariableResp struct {
	VariableType string `json:"variable_type"`
	Key          string `json:"key"`
	Value        string `json:"value"`
}

type GitlabPipelinesResp added in v0.4.3

type GitlabPipelinesResp 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 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, error)

func (*Google) CalendarGetEvents added in v0.3.0

func (g *Google) CalendarGetEvents(options GoogleCalendarOptions) ([]byte, error)

func (*Google) CustomCalendarGetEvents added in v0.4.3

func (g *Google) CustomCalendarGetEvents(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions) ([]byte, error)

type GoogleCalendarOptions added in v0.3.0

type GoogleCalendarOptions struct {
	ID                 string
	TimeMin            string
	TimeMax            string
	AlwaysIncludeEmail bool
}

type GoogleOptions added in v0.3.0

type GoogleOptions struct {
	Timeout           int
	Insecure          bool
	OAuthClientID     string
	OAuthClientSecret string
	RefreshToken      string
	AccessToken       string
}

type GoogleTokenReponse added in v0.3.0

type GoogleTokenReponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	Scope       string `json:"scope"`
	TokenType   string `json:"token_type"`
}

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, error)

func (Grafana) CreateAnnotation added in v0.3.3

func (g Grafana) CreateAnnotation(options GrafanaCreateAnnotationOptions) ([]byte, error)

func (Grafana) CustomCreateAnnotation added in v0.4.3

func (g Grafana) CustomCreateAnnotation(grafanaOptions GrafanaOptions, createAnnotationOptions GrafanaCreateAnnotationOptions) ([]byte, error)

func (*Grafana) CustomGetAnnotations added in v0.4.3

func (g *Grafana) CustomGetAnnotations(grafanaOptions GrafanaOptions, getAnnotationsOptions GrafanaGetAnnotationsOptions) ([]byte, error)

func (*Grafana) CustomGetDashboards added in v0.4.3

func (g *Grafana) CustomGetDashboards(grafanaOptions GrafanaOptions) ([]byte, error)

func (*Grafana) CustomRenderImage added in v0.4.3

func (g *Grafana) CustomRenderImage(grafanaOptions GrafanaOptions, renderImageOptions GrafanaRenderImageOptions) ([]byte, error)

func (*Grafana) GetAnnotations added in v0.3.0

func (g *Grafana) GetAnnotations(options GrafanaGetAnnotationsOptions) ([]byte, error)

func (*Grafana) GetDashboards added in v0.2.0

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

func (*Grafana) RenderImage added in v0.2.0

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

type GrafanaAnnotation added in v0.3.3

type GrafanaAnnotation struct {
	Time    int64    `json:"time"`
	TimeEnd int64    `json:"timeEnd"`
	Tags    []string `json:"tags"`
	Text    string   `json:"text"`
}

type GrafanaCreateAnnotationOptions added in v0.3.3

type GrafanaCreateAnnotationOptions struct {
	Time    string
	TimeEnd string
	Tags    string
	Text    string
}

type GrafanaGetAnnotationsOptions added in v0.3.0

type GrafanaGetAnnotationsOptions struct {
	From        string
	To          string
	Tags        string
	Type        string
	Limit       int
	AlertID     int
	DashboardID int
	PanelID     int
}

type GrafanaOptions added in v0.2.0

type GrafanaOptions struct {
	URL      string
	Timeout  int
	Insecure bool
	APIKey   string
	OrgID    string
	UID      string
	Slug     string
}

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, error)

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 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

func (JSON) Get added in v0.2.7

func (c JSON) Get() ([]byte, error)

type JSONOptions added in v0.2.7

type JSONOptions struct {
	Timeout  int
	Insecure bool
	URL      string
}

type JSONOutputOptions added in v0.2.7

type JSONOutputOptions struct {
	Output      string // path to output if empty to stdout
	OutputQuery 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, error)

func (*Jira) CustomIssueAddAttachment added in v0.4.3

func (j *Jira) CustomIssueAddAttachment(jiraOptions JiraOptions, issueOptions JiraIssueOptions, addAttachmentOptions JiraIssueAddAttachmentOptions) ([]byte, error)

func (*Jira) CustomIssueAddComment added in v0.4.3

func (j *Jira) CustomIssueAddComment(jiraOptions JiraOptions, issueOptions JiraIssueOptions, addCommentOptions JiraIssueAddCommentOptions) ([]byte, error)

func (*Jira) CustomIssueCreate added in v0.4.3

func (j *Jira) CustomIssueCreate(jiraOptions JiraOptions, issueOptions JiraIssueOptions, issueCreateOptions JiraIssueCreateOptions) ([]byte, error)

func (*Jira) CustomIssueUpdate added in v0.4.3

func (j *Jira) CustomIssueUpdate(jiraOptions JiraOptions, issueOptions JiraIssueOptions) ([]byte, error)

func (*Jira) IssueAddAttachment added in v0.2.0

func (j *Jira) IssueAddAttachment(issueOptions JiraIssueOptions, addAttachmentOptions JiraIssueAddAttachmentOptions) ([]byte, error)

func (*Jira) IssueAddComment added in v0.2.0

func (j *Jira) IssueAddComment(issueOptions JiraIssueOptions, addCommentOptions JiraIssueAddCommentOptions) ([]byte, error)

func (*Jira) IssueCreate added in v0.4.2

func (j *Jira) IssueCreate(issueOptions JiraIssueOptions, issueCreateOptions JiraIssueCreateOptions) ([]byte, error)

func (*Jira) IssueUpdate added in v0.4.2

func (j *Jira) IssueUpdate(options JiraIssueOptions) ([]byte, error)

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 JiraIssueCreate added in v0.4.2

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

type JiraIssueCreateOptions added in v0.4.2

type JiraIssueCreateOptions struct {
	ProjectKey string
	Type       string
	Priority   string
	Assignee   string
	Reporter   string
}

type JiraIssueFields added in v0.2.0

type JiraIssueFields struct {
	Project     *JiraIssueProject  `json:"project,omitempty"`
	IssueType   *JiraIssueType     `json:"issuetype,omitempty"`
	Summary     string             `json:"summary,omitempty"`
	Description string             `json:"description,omitempty"`
	Labels      []string           `json:"labels,omitempty"`
	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
	Summary     string
	Description string
	Labels      []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 JiraIssueUpdate added in v0.4.2

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

type JiraOptions added in v0.1.0

type JiraOptions struct {
	URL      string
	Timeout  int
	Insecure bool
	User     string
	Password string
}

type Slack

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

func NewSlack

func NewSlack(options SlackOptions) (*Slack, error)

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, error)

func (*Telegram) CustomSendDocument added in v0.4.3

func (t *Telegram) CustomSendDocument(telegramOptions TelegramOptions, documentOptions TelegramDocumentOptions) ([]byte, error)

func (*Telegram) CustomSendMessage added in v0.4.3

func (t *Telegram) CustomSendMessage(telegramOptions TelegramOptions, messageOptions TelegramMessageOptions) ([]byte, error)

func (*Telegram) CustomSendPhoto added in v0.4.3

func (t *Telegram) CustomSendPhoto(telegramOptions TelegramOptions, photoOptions TelegramPhotoOptions) ([]byte, error)

func (*Telegram) SendDocument added in v0.2.0

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

func (*Telegram) SendMessage added in v0.2.1

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

func (*Telegram) SendPhoto added in v0.2.0

func (t *Telegram) SendPhoto(options TelegramPhotoOptions) ([]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
}

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