vendors

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 26 Imported by: 5

Documentation

Index

Constants

View Source
const (
	VCenterContentType                = "application/json"
	VCenterRestSessionPath            = "/rest/com/vmware/cis/session"
	VCenterRestClusterPath            = "/rest/vcenter/cluster"
	VCenterRestHostPath               = "/rest/vcenter/host"
	VCenterRestVMPath                 = "/rest/vcenter/vm"
	VCenterRestVMGuestIdentityPathFmt = "/rest/vcenter/vm/%s/guest/identity"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSClient added in v0.13.5

type AWSClient struct {
	AccountID  string
	Region     string
	Keys       *AWSKeys
	HttpClient *http.Client
	Url        string
}

func (*AWSClient) Do added in v0.13.5

func (c *AWSClient) Do(req *http.Request) (*http.Response, error)

Do executes the HTTP request with AWS authentication using the standard AWS4 format.

type AWSEC2 added in v0.13.5

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

func NewAWSEC2 added in v0.13.5

func NewAWSEC2(keys AWSKeys) (*AWSEC2, error)

NewAWSEC2 creates a new instance of AWSEC2 with the given AWS keys. It retrieves available regions and generates clients for each region.

func (*AWSEC2) GetAllAWSEC2Instances added in v0.13.5

func (e *AWSEC2) GetAllAWSEC2Instances() ([]AWSEC2Instance, error)

GetAllEC2Instances retrieves all EC2 instances associated with the AWSEC2 service.

type AWSEC2Instance added in v0.13.5

type AWSEC2Instance struct {
	AccountID string
	Host      string
	IP        string
	Region    string
	OS        string
	Server    string
	Vendor    string
	Cluster   string
}

type AWSKeys added in v0.13.5

type AWSKeys struct {
	AccessKey string
	SecretKey string
}

type AWSRegion added in v0.13.5

type AWSRegion struct {
	RegionName     string `xml:"regionName"`
	RegionEndpoint string `xml:"regionEndpoint"`
}

type AWSService added in v0.13.5

type AWSService struct {
	Name   string
	Region string
}

type DashboardMeta added in v0.14.5

type DashboardMeta struct {
	IsStarred bool   `json:"isStarred"`
	Slug      string `json:"slug"`
	Folder    *int64 `json:"folderId"`
	FolderUID string `json:"folderUid"`
	URL       string `json:"url"`
}

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) CustomGetPipelineVariables added in v0.12.0

func (g *Gitlab) CustomGetPipelineVariables(gitlabOptions GitlabOptions, pipelineOptions GitlabPipelineOptions,
	getVariablesOptions GitlabGetPipelineVariablesOptions) ([]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) GetPipelineVariables added in v0.12.0

func (g *Gitlab) GetPipelineVariables(pipelineOptions GitlabPipelineOptions, getVariablesOptions GitlabGetPipelineVariablesOptions) ([]byte, error)

type GitlabGetPipelineVariablesOptions added in v0.12.0

type GitlabGetPipelineVariablesOptions struct {
	Query []string
}

type GitlabOptions added in v0.3.0

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

type GitlabPipelineOptions added in v0.4.3

type GitlabPipelineOptions struct {
	ProjectID int
	Scope     string
	Status    string
	Source    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, logger common.Logger) *Google

func (*Google) CalendarDeleteEvent added in v0.13.2

func (g *Google) CalendarDeleteEvent(calendarOptions GoogleCalendarOptions, calendarDeleteEventOptions GoogleCalendarDeleteEventOptions) ([]byte, error)

func (*Google) CalendarDeleteEvents added in v0.13.2

func (g *Google) CalendarDeleteEvents(calendarOptions GoogleCalendarOptions, calendarGetEventsOptions GoogleCalendarGetEventsOptions) ([]byte, error)

func (*Google) CalendarGetEvents added in v0.3.0

func (g *Google) CalendarGetEvents(calendarOptions GoogleCalendarOptions, calendarGetEventsOptions GoogleCalendarGetEventsOptions) ([]byte, error)

func (*Google) CalendarInsertEvent added in v0.13.2

func (g *Google) CalendarInsertEvent(calendarOptions GoogleCalendarOptions, calendarInsertEventOptions GoogleCalendarInsertEventOptions) ([]byte, error)

func (*Google) CustomCalendarDeleteEvent added in v0.13.2

func (g *Google) CustomCalendarDeleteEvent(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions, calendarDeleteEventOptions GoogleCalendarDeleteEventOptions) ([]byte, error)

func (*Google) CustomCalendarDeleteEvents added in v0.13.2

func (g *Google) CustomCalendarDeleteEvents(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions, calendarGetEventsOptions GoogleCalendarGetEventsOptions) ([]byte, error)

func (*Google) CustomCalendarGetEvents added in v0.4.3

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

func (*Google) CustomCalendarInsertEvent added in v0.13.2

func (g *Google) CustomCalendarInsertEvent(googleOptions GoogleOptions, calendarOptions GoogleCalendarOptions, calendarInsertEventOptions GoogleCalendarInsertEventOptions) ([]byte, error)

type GoogleCalendarDeleteEventOptions added in v0.13.2

type GoogleCalendarDeleteEventOptions struct {
	ID          string
	SendUpdates string
}

type GoogleCalendarDeleteEventsOptions added in v0.13.2

type GoogleCalendarDeleteEventsOptions struct {
	TimeMin string
	TimeMax string
}

type GoogleCalendarEvent added in v0.13.2

type GoogleCalendarEvent struct {
	ID                      string                         `json:"id,omitempty"`
	Summary                 string                         `json:"summary"`
	Description             string                         `json:"description"`
	EventType               string                         `json:"eventType"`
	Location                string                         `json:"location,omitempty"`
	Transparency            string                         `json:"transparency,omitempty"`
	Visibility              string                         `json:"visibility,omitempty"`
	Start                   GoogleCalendarEventDataTime    `json:"start"`
	End                     GoogleCalendarEventDataTime    `json:"end"`
	Attendees               []*GoogleCalendarEventAttendee `json:"attendees"`
	GuestsCanInviteOthers   bool                           `json:"guestsCanInviteOthers"`
	GuestsCanModify         bool                           `json:"guestsCanModify"`
	GuestsCanSeeOtherGuests bool                           `json:"guestsCanSeeOtherGuests"`
	Source                  *GoogleCalendarEventSource     `json:"source,omitempty"`
	ConferenceData          *GoogleConferenceData          `json:"conferenceData,omitempty"`
}

type GoogleCalendarEventAttendee added in v0.13.2

type GoogleCalendarEventAttendee struct {
	Email    string `json:"email"`
	Optional string `json:"optional,omitempty"`
}

type GoogleCalendarEventDataTime added in v0.13.2

type GoogleCalendarEventDataTime struct {
	Date     string `json:"date,omitempty"`
	DateTime string `json:"dateTime,omitempty"`
	TimeZone string `json:"timeZone,omitempty"`
}

type GoogleCalendarEventSource added in v0.13.2

type GoogleCalendarEventSource struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

type GoogleCalendarEvents added in v0.13.2

type GoogleCalendarEvents struct {
	Kind     string                 `json:"kind"`
	Summary  string                 `json:"summary,omitempty"`
	TimeZone string                 `json:"timeZone,omitempty"`
	Items    []*GoogleCalendarEvent `json:"items,omitempty"`
}

type GoogleCalendarGetEventsOptions added in v0.13.2

type GoogleCalendarGetEventsOptions struct {
	TimeMin      string
	TimeMax      string
	TimeZone     string
	OrderBy      string
	Q            string
	SingleEvents bool
}

type GoogleCalendarInsertEventOptions added in v0.13.2

type GoogleCalendarInsertEventOptions struct {
	Summary             string
	Description         string
	Start               string
	End                 string
	TimeZone            string
	Visibility          string
	SendUpdates         string
	SupportsAttachments bool
	SourceTitle         string
	SourceURL           string
	ConferenceID        string
}

type GoogleCalendarOptions added in v0.3.0

type GoogleCalendarOptions struct {
	ID string
}

type GoogleConferenceData added in v0.13.2

type GoogleConferenceData struct {
	ConferenceSolution *GoogleConferenceDataSolution      `json:"conferenceSolution,omitempty"`
	CreateRequest      *GoogleConferenceDataCreateRequest `json:"createRequest,omitempty"`
	EntryPoints        []*GoogleConferenceDataEntryPoint  `json:"entryPoints,omitempty"`
	ConferenceID       string                             `json:"conferenceId,omitempty"`
}

type GoogleConferenceDataCreateRequest added in v0.13.2

type GoogleConferenceDataCreateRequest struct {
	ConferenceSolutionKey GoogleConferenceDataSolutionKey `json:"conferenceSolutionKey"`
	RequestID             string                          `json:"requestId"`
}

type GoogleConferenceDataEntryPoint added in v0.13.2

type GoogleConferenceDataEntryPoint struct {
	EntryPointType string `json:"entryPointType,omitempty"`
	URI            string `json:"uri,omitempty"`
	Label          string `json:"label,omitempty"`
}

type GoogleConferenceDataSolution added in v0.13.2

type GoogleConferenceDataSolution struct {
	Key     GoogleConferenceDataSolutionKey `json:"key"`
	Name    string                          `json:"name"`
	IconURI string                          `json:"iconUri"`
}

type GoogleConferenceDataSolutionKey added in v0.13.2

type GoogleConferenceDataSolutionKey struct {
	Type string `json:"type"`
}

type GoogleOptions added in v0.3.0

type GoogleOptions struct {
	Timeout           int
	Insecure          bool
	OAuthClientID     string
	OAuthClientSecret string
	RefreshToken      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

func (*Grafana) CopyDashboard added in v0.14.5

func (g *Grafana) CopyDashboard(grafanaCreateOptions GrafanaCreateDahboardOptions) ([]byte, error)

func (*Grafana) CreateAnnotation added in v0.3.3

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

func (*Grafana) CreateDashboard added in v0.8.1

func (g *Grafana) CreateDashboard(options GrafanaCreateDahboardOptions) ([]byte, error)

func (Grafana) CustomCopyDashboard added in v0.14.5

func (g Grafana) CustomCopyDashboard(grafanaOptions GrafanaOptions, grafanaCreateOptions GrafanaCreateDahboardOptions) ([]byte, error)

func (Grafana) CustomCreateAnnotation added in v0.4.3

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

func (Grafana) CustomCreateDashboard added in v0.8.1

func (g Grafana) CustomCreateDashboard(grafanaOptions GrafanaOptions, createDashboardOptions GrafanaCreateDahboardOptions) ([]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 GrafanaBoard added in v0.8.1

type GrafanaBoard struct {
	Dashboard GrafanaDashboard `json:"dashboard,omitempty"`
	FolderID  int              `json:"folderId,omitempty"`
	FolderUID string           `json:"folderUid,omitempty"`
	Message   string           `json:"message,omitempty"`
	Overwrite bool             `json:"overwrite,omitempty"`
	Meta      DashboardMeta    `json:"meta,omitempty"`
}

type GrafanaClonedDahboardOptions added in v0.8.1

type GrafanaClonedDahboardOptions struct {
	UID         string
	Annotations []string
	PanelIDs    []string
	PanelTitles []string
	PanelSeries []string
	LegendRight bool
	Arrange     bool
	Count       int
	Width       int
	Height      int
}

type GrafanaCreateAnnotationOptions added in v0.3.3

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

type GrafanaCreateDahboardOptions added in v0.8.1

type GrafanaCreateDahboardOptions struct {
	Title     string
	FolderUID string
	Tags      []string
	From      string
	To        string
	Cloned    GrafanaClonedDahboardOptions
}

type GrafanaDashboard added in v0.8.1

type GrafanaDashboard struct {
	ID            *int                        `json:"id,omitempty"`
	UID           string                      `json:"uid,omitempty"`
	Title         string                      `json:"title,omitempty"`
	Tags          []string                    `json:"tags,omitempty"`
	Timezone      string                      `json:"timezone,omitempty"`
	SchemaVersion int                         `json:"schemaVersion,omitempty"`
	Version       int                         `json:"version,omitempty"`
	GraphTooltip  int                         `json:"graphTooltip,omitempty"`
	Time          GrafanaDashboardTime        `json:"time,omitempty"`
	Annotations   GrafanaDashboardAnnotations `json:"annotations,omitempty"`
	Templating    GrafanaDashboardTemplating  `json:"templating,omitempty"`
	Panels        []interface{}               `json:"panels,omitempty"`
}

type GrafanaDashboardAnnotations added in v0.8.1

type GrafanaDashboardAnnotations struct {
	List         []interface{} `json:"list"`
	GraphTooltip int           `json:"graphTooltip"`
}

type GrafanaDashboardTemplating added in v0.14.5

type GrafanaDashboardTemplating struct {
	List []interface{} `json:"list"`
}

type GrafanaDashboardTime added in v0.8.1

type GrafanaDashboardTime struct {
	From string `json:"from"`
	To   string `json:"to"`
}

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
	MatchAny    bool
}

type GrafanaOptions added in v0.2.0

type GrafanaOptions struct {
	URL               string
	Timeout           int
	Insecure          bool
	APIKey            string
	OrgID             string
	DashboardUID      string
	DashboardSlug     string
	DashboardTimezone 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

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) AddIssueAttachment added in v0.12.0

func (j *Jira) AddIssueAttachment(issueOptions JiraIssueOptions, addAttachmentOptions JiraAddIssueAttachmentOptions) ([]byte, error)

func (*Jira) ChangeIssueTransitions added in v0.12.0

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

func (*Jira) CreateAsset added in v0.13.7

func (j *Jira) CreateAsset(objectCreateOptions JiraCreateAssetOptions) ([]byte, error)

func (*Jira) CreateIssue added in v0.2.0

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

func (*Jira) CustomAddIssueAttachment added in v0.12.0

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

func (*Jira) CustomAddIssueComment added in v0.12.0

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

func (*Jira) CustomChangeIssueTransitions added in v0.12.0

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

func (*Jira) CustomCreateAsset added in v0.13.7

func (j *Jira) CustomCreateAsset(jiraOptions JiraOptions, createOptions JiraCreateAssetOptions) ([]byte, error)

func (*Jira) CustomCreateIssue added in v0.12.0

func (j *Jira) CustomCreateIssue(jiraOptions JiraOptions, createOptions JiraIssueOptions) ([]byte, error)

func (*Jira) CustomSearchAssets added in v0.12.0

func (j *Jira) CustomSearchAssets(jiraOptions JiraOptions, search JiraSearchAssetsOptions) ([]byte, error)

func (*Jira) CustomSearchIssue added in v0.12.0

func (j *Jira) CustomSearchIssue(jiraOptions JiraOptions, search JiraSearchIssueOptions) ([]byte, error)

func (*Jira) CustomUpdateIssue added in v0.12.0

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

func (*Jira) IssueAddComment added in v0.2.0

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

func (*Jira) SearchAssets added in v0.12.0

func (j *Jira) SearchAssets(options JiraSearchAssetsOptions) ([]byte, error)

func (*Jira) SearchIssue added in v0.12.0

func (j *Jira) SearchIssue(options JiraSearchIssueOptions) ([]byte, error)

func (*Jira) UpdateIssue added in v0.12.0

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

type JiraAddIssueAttachmentOptions added in v0.12.0

type JiraAddIssueAttachmentOptions struct {
	File string
	Name string
}

type JiraAddIssueCommentOptions added in v0.12.0

type JiraAddIssueCommentOptions struct {
	Body string
}

type JiraAsset added in v0.13.7

type JiraAsset struct {
	ObjectTypeId int                  `json:"objectTypeId"`
	Attributes   []JiraAssetAttribute `json:"attributes"`
}

type JiraAssetAttribute added in v0.13.7

type JiraAssetAttribute struct {
	ObjectTypeAttributeId int                       `json:"objectTypeAttributeId"`
	ObjectAttributeValues []JiraAssetAttributeValue `json:"objectAttributeValues"`
}

type JiraAssetAttributeValue added in v0.13.7

type JiraAssetAttributeValue struct {
	Value string `json:"value"`
}

type JiraCreateAssetOptions added in v0.13.7

type JiraCreateAssetOptions struct {
	Description    string
	Name           string
	Repository     string
	DescriptionId  int
	NameId         int
	RepositoryId   int
	ObjectSchemeId string
	ObjectTypeId   int
	TitleId        int
	Title          string
	TierId         int
	Tier           string
}

type JiraIssueAddComment added in v0.2.0

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

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 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
	ProjectKey   string
	Type         string
	Priority     string
	Assignee     string
	Reporter     string
	Summary      string
	Description  string
	CustomFields string
	Status       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 JiraIssueTransition added in v0.6.17

type JiraIssueTransition struct {
	Transition *JiraTransition `json:"transition"`
}

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
	AccessToken string
}

type JiraSearchAssetsOptions added in v0.12.0

type JiraSearchAssetsOptions struct {
	SearchPattern string
	ResultPerPage int
}

type JiraSearchIssueOptions added in v0.12.0

type JiraSearchIssueOptions struct {
	SearchPattern string
	MaxResults    int
}

type JiraTransition added in v0.6.17

type JiraTransition struct {
	ID string `json:"id"`
}

type Observium added in v0.9.15

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

func NewObservium added in v0.9.15

func NewObservium(options ObserviumOptions) *Observium

func (*Observium) CustomGetDevices added in v0.9.15

func (o *Observium) CustomGetDevices(options ObserviumOptions) ([]byte, error)

func (*Observium) GetDevices added in v0.9.15

func (o *Observium) GetDevices() ([]byte, error)

type ObserviumOptions added in v0.9.15

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

type OutputCode added in v0.7.2

type OutputCode struct {
	Code int `json:"code"`
}

type PagerDuty added in v0.12.0

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

func NewPagerDuty added in v0.12.0

func NewPagerDuty(options PagerDutyOptions, logger common.Logger) *PagerDuty

func (*PagerDuty) CreateIncident added in v0.12.0

func (pd *PagerDuty) CreateIncident(incidentOptions PagerDutyIncidentOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CreateIncidentNote added in v0.14.4

func (pd *PagerDuty) CreateIncidentNote(noteOptions PagerDutyIncidentNoteOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CustomCreateIncident added in v0.12.0

func (pd *PagerDuty) CustomCreateIncident(options PagerDutyOptions, incidentOptions PagerDutyIncidentOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CustomCreateIncidentNote added in v0.14.4

func (pd *PagerDuty) CustomCreateIncidentNote(options PagerDutyOptions, noteOptions PagerDutyIncidentNoteOptions, createOptions PagerDutyCreateIncidentOptions) ([]byte, error)

func (*PagerDuty) CustomGetIncidents added in v0.12.0

func (pd *PagerDuty) CustomGetIncidents(options PagerDutyOptions, getOptions PagerDutyGetIncidentsOptions) ([]byte, error)

func (*PagerDuty) GetIncidents added in v0.12.0

func (pd *PagerDuty) GetIncidents(getOptions PagerDutyGetIncidentsOptions) ([]byte, error)

type PagerDutyBody added in v0.12.0

type PagerDutyBody struct {
	Type    string `json:"type"`
	Details string `json:"details"`
}

type PagerDutyCreateIncidentOptions added in v0.12.0

type PagerDutyCreateIncidentOptions struct {
	From string
}

type PagerDutyGetIncidentsOptions added in v0.12.0

type PagerDutyGetIncidentsOptions struct {
	Key   string
	Limit int
}

type PagerDutyIncident added in v0.12.0

type PagerDutyIncident struct {
	Type     string             `json:"type"`
	Title    string             `json:"title"`
	Urgency  string             `json:"urgency,omitempty"`
	Service  *PagerDutyService  `json:"service"`
	Priority *PagerDutyPriority `json:"priority,omitempty"`
	Body     *PagerDutyBody     `json:"body,omitempty"`
}

type PagerDutyIncidentNote added in v0.14.4

type PagerDutyIncidentNote struct {
	Content string `json:"content,omitempty"`
}

type PagerDutyIncidentNoteOptions added in v0.14.4

type PagerDutyIncidentNoteOptions struct {
	IncidentID  string
	NoteContent string
}

type PagerDutyIncidentNoteRequest added in v0.14.4

type PagerDutyIncidentNoteRequest struct {
	Note *PagerDutyIncidentNote `json:"note"`
}

type PagerDutyIncidentOptions added in v0.12.0

type PagerDutyIncidentOptions struct {
	Title      string
	Body       string
	Urgency    string
	ServiceID  string
	PriorityID string
}

type PagerDutyIncidentRequest added in v0.12.0

type PagerDutyIncidentRequest struct {
	Incident *PagerDutyIncident `json:"incident"`
}

type PagerDutyOptions added in v0.12.0

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

type PagerDutyPriority added in v0.12.0

type PagerDutyPriority struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

type PagerDutyService added in v0.12.0

type PagerDutyService struct {
	Type string `json:"type"`
	ID   string `json:"id"`
}

type Prometheus added in v0.6.0

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

func NewPrometheus added in v0.6.0

func NewPrometheus(options PrometheusOptions) *Prometheus

func (*Prometheus) CustomGet added in v0.6.0

func (p *Prometheus) CustomGet(options PrometheusOptions) ([]byte, error)

func (*Prometheus) Get added in v0.6.0

func (p *Prometheus) Get() ([]byte, error)

type PrometheusOptions added in v0.6.0

type PrometheusOptions struct {
	URL      string
	User     string
	Password string
	Timeout  int
	Insecure bool
	Query    string
	From     string
	To       string
	Step     string
	Params   string
}

type PrometheusOutputOptions added in v0.6.0

type PrometheusOutputOptions struct {
	Output      string
	OutputQuery string
}

type Slack

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

func NewSlack

func NewSlack(options SlackOptions) *Slack

func (*Slack) AddReaction added in v0.7.3

func (s *Slack) AddReaction(options SlackReactionOptions) ([]byte, error)

func (*Slack) CustomAddReaction added in v0.7.3

func (s *Slack) CustomAddReaction(slackOptions SlackOptions, reactionOptions SlackReactionOptions) ([]byte, error)

func (*Slack) CustomGetUser added in v0.8.6

func (s *Slack) CustomGetUser(slackOptions SlackOptions, slackUser SlackUserEmail) ([]byte, error)

func (*Slack) CustomUpdateUsergroup added in v0.8.6

func (s *Slack) CustomUpdateUsergroup(slackOptions SlackOptions, slackUpdateUsergroup SlackUsergroupUsers) ([]byte, error)

func (*Slack) GetUser added in v0.8.6

func (s *Slack) GetUser(options SlackUserEmail) ([]byte, 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)

func (*Slack) UpdateUsergroup added in v0.8.6

func (s *Slack) UpdateUsergroup(options SlackUsergroupUsers) ([]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
	QuoteColor  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
	QuoteColor string
}

type SlackOutputOptions added in v0.2.0

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

type SlackReactionOptions added in v0.7.3

type SlackReactionOptions struct {
	Name string
}

type SlackUserEmail added in v0.8.6

type SlackUserEmail struct {
	Email string
}

type SlackUsergroupUsers added in v0.8.6

type SlackUsergroupUsers struct {
	Usergroup string   `json:"usergroup"`
	Users     []string `json:"users"`
}

type Telegram

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

func NewTelegram

func NewTelegram(options TelegramOptions) *Telegram

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
}

type VCenter added in v0.10.1

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

func NewVCenter added in v0.10.1

func NewVCenter(options VCenterOptions) *VCenter

func (*VCenter) CustomGetClusters added in v0.10.1

func (vc *VCenter) CustomGetClusters(options VCenterOptions) ([]byte, error)

func (*VCenter) CustomGetHosts added in v0.10.1

func (vc *VCenter) CustomGetHosts(options VCenterOptions, hostOptions VCenterHostOptions) ([]byte, error)

func (*VCenter) CustomGetSession added in v0.10.2

func (vc *VCenter) CustomGetSession(options VCenterOptions) (string, error)

func (*VCenter) CustomGetVMGuestIdentity added in v0.10.3

func (vc *VCenter) CustomGetVMGuestIdentity(options VCenterOptions, vmGuestidentity VCenterVMGuestIdentityOptions) ([]byte, error)

func (*VCenter) CustomGetVMs added in v0.10.1

func (vc *VCenter) CustomGetVMs(options VCenterOptions, vmOptions VCenterVMOptions) ([]byte, error)

func (*VCenter) GetClusters added in v0.10.1

func (vc *VCenter) GetClusters() ([]byte, error)

func (*VCenter) GetHosts added in v0.10.1

func (vc *VCenter) GetHosts(options VCenterHostOptions) ([]byte, error)

func (*VCenter) GetVMGuestIdentity added in v0.10.3

func (vc *VCenter) GetVMGuestIdentity(options VCenterVMGuestIdentityOptions) ([]byte, error)

func (*VCenter) GetVMs added in v0.10.1

func (vc *VCenter) GetVMs(options VCenterVMOptions) ([]byte, error)

type VCenterHostOptions added in v0.10.1

type VCenterHostOptions struct {
	Cluster string
}

type VCenterOptions added in v0.10.1

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

type VCenterSessionResponse added in v0.10.1

type VCenterSessionResponse struct {
	Value string `json:"value"`
}

type VCenterVMGuestIdentityOptions added in v0.10.3

type VCenterVMGuestIdentityOptions struct {
	VM string
}

type VCenterVMOptions added in v0.10.1

type VCenterVMOptions struct {
	Cluster string
	Host    string
}

type Zabbix added in v0.10.0

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

func NewZabbix added in v0.10.0

func NewZabbix(options ZabbixOptions) *Zabbix

func (*Zabbix) CustomGetHosts added in v0.10.0

func (o *Zabbix) CustomGetHosts(options ZabbixOptions, hostOptions ZabbixHostOptions) ([]byte, error)

func (*Zabbix) GetHosts added in v0.10.0

func (o *Zabbix) GetHosts(options ZabbixHostOptions) ([]byte, error)

type ZabbixHostGet added in v0.10.0

type ZabbixHostGet struct {
	JsonRPC string               `json:"jsonrpc"`
	Method  string               `json:"method"`
	Params  *ZabbixHostGetParams `json:"params"`
	Auth    string               `json:"auth"`
	ID      int                  `json:"id"`
}

type ZabbixHostGetParams added in v0.10.0

type ZabbixHostGetParams struct {
	Output           []string `json:"output"`
	SelectInventory  []string `json:"selectInventory"`
	SelectInterfaces []string `json:"selectInterfaces"`
}

type ZabbixHostOptions added in v0.10.1

type ZabbixHostOptions struct {
	Fields     []string
	Inventory  []string
	Interfaces []string
}

type ZabbixOptions added in v0.10.0

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

type ZabbixUserLogin added in v0.10.0

type ZabbixUserLogin struct {
	JsonRPC string                 `json:"jsonrpc"`
	Method  string                 `json:"method"`
	Params  *ZabbixUserLoginParams `json:"params"`
	ID      int                    `json:"id"`
}

type ZabbixUserLoginParams added in v0.10.0

type ZabbixUserLoginParams struct {
	User     string `json:"user"`
	Password string `json:"password"`
}

type ZabbixUserLoginResponse added in v0.10.0

type ZabbixUserLoginResponse struct {
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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