vendors

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 17 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

func (Gitlab) GetLastPipeline added in v0.3.0

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

func (Gitlab) GetLastPipelineVariables added in v0.3.0

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

type GitlabOptions added in v0.3.0

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

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

func (g *Google) CalendarGetEvents() ([]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
	CalendarOptions   *GoogleCalendarOptions
}

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

func (Grafana) CreateAnnotation added in v0.3.3

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

func (Grafana) CreateCustomAnnotation added in v0.3.3

func (g Grafana) CreateCustomAnnotation(ao *GrafanaCreateAnnotationOptions) ([]byte, error)

func (*Grafana) GetAnnotations added in v0.3.0

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

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 (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 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 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
	GetAnnotationsOptions   *GrafanaGetAnnotationsOptions
	CreateAnnotationOptions *GrafanaCreateAnnotationOptions
}

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

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)

func (*Jira) IssueCreate added in v0.4.2

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

func (*Jira) IssueCreateCustom added in v0.4.2

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

func (*Jira) IssueUpdate added in v0.4.2

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

func (*Jira) IssueUpdateCustom added in v0.4.2

func (j *Jira) IssueUpdateCustom(opts JiraOptions) ([]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 JiraIssueUpdateOptions added in v0.4.2

type JiraIssueUpdateOptions struct {
}

type JiraOptions added in v0.1.0

type JiraOptions struct {
	URL                       string
	Timeout                   int
	Insecure                  bool
	User                      string
	Password                  string
	IssueCreateOptions        *JiraIssueCreateOptions
	IssueOptions              *JiraIssueOptions
	IssueAddCommentOptions    *JiraIssueAddCommentOptions
	IssueAddAttachmentOptions *JiraIssueAddAttachmentOptions
	IssueUpdateOptions        *JiraIssueUpdateOptions
}

type PipelineOptions added in v0.3.0

type PipelineOptions struct {
	Project string
	Ref     string
}

type PipelineVariableResp added in v0.3.0

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

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