Documentation
¶
Index ¶
- Constants
- type Gitlab
- func (g *Gitlab) CustomPipelineGetVariables(gitlabOptions GitlabOptions, pipelineOptions GitlabPipelineOptions, ...) ([]byte, error)
- func (g Gitlab) GetLastPipeline(project int, ref string) ([]byte, error)
- func (g Gitlab) GetLastPipelineVariables(project int, ref string) ([]byte, error)
- func (g *Gitlab) PipelineGetVariables(pipelineOptions GitlabPipelineOptions, ...) ([]byte, error)
- type GitlabOptions
- type GitlabPipelineGetVariablesOptions
- type GitlabPipelineOptions
- type GitlabPipelineVariableResp
- type GitlabPipelinesResp
- type Google
- type GoogleCalendarOptions
- type GoogleOptions
- type GoogleTokenReponse
- type Grafana
- func (g *Grafana) CreateAnnotation(options GrafanaCreateAnnotationOptions) ([]byte, error)
- func (g *Grafana) CreateDashboard(options GrafanaCreateDahboardOptions) ([]byte, error)
- func (g Grafana) CustomCreateAnnotation(grafanaOptions GrafanaOptions, ...) ([]byte, error)
- func (g Grafana) CustomCreateDashboard(grafanaOptions GrafanaOptions, ...) ([]byte, error)
- func (g *Grafana) CustomGetAnnotations(grafanaOptions GrafanaOptions, ...) ([]byte, error)
- func (g *Grafana) CustomGetDashboards(grafanaOptions GrafanaOptions) ([]byte, error)
- func (g *Grafana) CustomRenderImage(grafanaOptions GrafanaOptions, renderImageOptions GrafanaRenderImageOptions) ([]byte, error)
- func (g *Grafana) GetAnnotations(options GrafanaGetAnnotationsOptions) ([]byte, error)
- func (g *Grafana) GetDashboards() ([]byte, error)
- func (g *Grafana) RenderImage(options GrafanaRenderImageOptions) ([]byte, error)
- type GrafanaAnnotation
- type GrafanaBoard
- type GrafanaClonedDahboardOptions
- type GrafanaCreateAnnotationOptions
- type GrafanaCreateDahboardOptions
- type GrafanaDashboard
- type GrafanaDashboardAnnotations
- type GrafanaDashboardTime
- type GrafanaGetAnnotationsOptions
- type GrafanaOptions
- type GrafanaRenderImageOptions
- type Graylog
- type GraylogOptions
- type JSON
- type JSONOptions
- type JSONOutputOptions
- type Jira
- func (j *Jira) AssetsCustomSearch(jiraOptions JiraOptions, assetsSearch JiraAssetsSearchOptions) ([]byte, error)
- func (j *Jira) AssetsSearch(options JiraAssetsSearchOptions) ([]byte, error)
- func (j *Jira) CustomIssueAddAttachment(jiraOptions JiraOptions, issueOptions JiraIssueOptions, ...) ([]byte, error)
- func (j *Jira) CustomIssueAddComment(jiraOptions JiraOptions, issueOptions JiraIssueOptions, ...) ([]byte, error)
- func (j *Jira) CustomIssueChangeTransitions(jiraOptions JiraOptions, issueOptions JiraIssueOptions) ([]byte, error)
- func (j *Jira) CustomIssueCreate(jiraOptions JiraOptions, issueOptions JiraIssueOptions, ...) ([]byte, error)
- func (j *Jira) CustomIssueSearch(jiraOptions JiraOptions, issueSearch JiraIssueSearchOptions) ([]byte, error)
- func (j *Jira) CustomIssueUpdate(jiraOptions JiraOptions, issueOptions JiraIssueOptions) ([]byte, error)
- func (j *Jira) IssueAddAttachment(issueOptions JiraIssueOptions, ...) ([]byte, error)
- func (j *Jira) IssueAddComment(issueOptions JiraIssueOptions, addCommentOptions JiraIssueAddCommentOptions) ([]byte, error)
- func (j *Jira) IssueChangeTransitions(options JiraIssueOptions) ([]byte, error)
- func (j *Jira) IssueCreate(issueOptions JiraIssueOptions, issueCreateOptions JiraIssueCreateOptions) ([]byte, error)
- func (j *Jira) IssueSearch(options JiraIssueSearchOptions) ([]byte, error)
- func (j *Jira) IssueUpdate(options JiraIssueOptions) ([]byte, error)
- type JiraAssetsSearchOptions
- type JiraIssueAddAttachmentOptions
- type JiraIssueAddComment
- type JiraIssueAddCommentOptions
- type JiraIssueAssignee
- type JiraIssueCreate
- type JiraIssueCreateOptions
- type JiraIssueFields
- type JiraIssueOptions
- type JiraIssuePriority
- type JiraIssueProject
- type JiraIssueReporter
- type JiraIssueSearchOptions
- type JiraIssueTransition
- type JiraIssueType
- type JiraIssueUpdate
- type JiraOptions
- type JiraTransition
- type Observium
- type ObserviumOptions
- type OutputCode
- type Prometheus
- type PrometheusOptions
- type PrometheusOutputOptions
- type Slack
- func (s *Slack) AddReaction(options SlackReactionOptions) ([]byte, error)
- func (s *Slack) CustomAddReaction(slackOptions SlackOptions, reactionOptions SlackReactionOptions) ([]byte, error)
- func (s *Slack) CustomGetUser(slackOptions SlackOptions, slackUser SlackUserEmail) ([]byte, error)
- func (s *Slack) CustomUpdateUsergroup(slackOptions SlackOptions, slackUpdateUsergroup SlackUsergroupUsers) ([]byte, error)
- func (s *Slack) GetUser(options SlackUserEmail) ([]byte, error)
- 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)
- func (s *Slack) UpdateUsergroup(options SlackUsergroupUsers) ([]byte, error)
- type SlackMessage
- type SlackOptions
- type SlackOutputOptions
- type SlackReactionOptions
- type SlackUserEmail
- type SlackUsergroupUsers
- type Telegram
- func (t *Telegram) CustomSendDocument(telegramOptions TelegramOptions, documentOptions TelegramDocumentOptions) ([]byte, error)
- func (t *Telegram) CustomSendMessage(telegramOptions TelegramOptions, messageOptions TelegramMessageOptions) ([]byte, error)
- func (t *Telegram) CustomSendPhoto(telegramOptions TelegramOptions, photoOptions TelegramPhotoOptions) ([]byte, error)
- func (t *Telegram) SendDocument(options TelegramDocumentOptions) ([]byte, error)
- func (t *Telegram) SendMessage(options TelegramMessageOptions) ([]byte, error)
- func (t *Telegram) SendPhoto(options TelegramPhotoOptions) ([]byte, error)
- type TelegramDocumentOptions
- type TelegramMessageOptions
- type TelegramOptions
- type TelegramPhotoOptions
- type VCenter
- func (vc *VCenter) CustomGetClusters(options VCenterOptions) ([]byte, error)
- func (vc *VCenter) CustomGetHosts(options VCenterOptions, hostOptions VCenterHostOptions) ([]byte, error)
- func (vc *VCenter) CustomGetVMs(options VCenterOptions, vmOptions VCenterVMOptions) ([]byte, error)
- func (vc *VCenter) GetClusters() ([]byte, error)
- func (vc *VCenter) GetHosts(options VCenterHostOptions) ([]byte, error)
- func (vc *VCenter) GetVMs(options VCenterVMOptions) ([]byte, error)
- type VCenterHostOptions
- type VCenterOptions
- type VCenterSessionResponse
- type VCenterVMOptions
- type Zabbix
- type ZabbixHostGet
- type ZabbixHostGetParams
- type ZabbixHostOptions
- type ZabbixOptions
- type ZabbixUserLogin
- type ZabbixUserLoginParams
- type ZabbixUserLoginResponse
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" )
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 (Gitlab) GetLastPipelineVariables ¶ added in v0.3.0
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 GitlabPipelineGetVariablesOptions ¶ added in v0.4.3
type GitlabPipelineGetVariablesOptions struct {
Query []string
}
type GitlabPipelineOptions ¶ added in v0.4.3
type GitlabPipelineVariableResp ¶ added in v0.4.3
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 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, 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) 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 (*Grafana) RenderImage ¶ added in v0.2.0
func (g *Grafana) RenderImage(options GrafanaRenderImageOptions) ([]byte, error)
type GrafanaAnnotation ¶ added in v0.3.3
type GrafanaBoard ¶ added in v0.8.1
type GrafanaBoard struct {
Dashboard GrafanaDashboard `json:"dashboard"`
FolderID int `json:"folderId"`
FolderUID string `json:"folderUid"`
Message string `json:"message"`
Overwrite bool `json:"overwrite"`
}
type GrafanaClonedDahboardOptions ¶ added in v0.8.1
type GrafanaCreateAnnotationOptions ¶ added in v0.3.3
type GrafanaCreateDahboardOptions ¶ added in v0.8.1
type GrafanaDashboard ¶ added in v0.8.1
type GrafanaDashboard struct {
ID int `json:"id"`
UID string `json:"uid"`
Title string `json:"title"`
Tags []string `json:"tags"`
Timezone string `json:"timezone"`
SchemaVersion int `json:"schemaVersion"`
Version int `json:"version"`
GraphTooltip int `json:"graphTooltip"`
Time GrafanaDashboardTime `json:"time"`
Annotations GrafanaDashboardAnnotations `json:"annotations"`
Panels []interface{} `json:"panels"`
}
type GrafanaDashboardAnnotations ¶ added in v0.8.1
type GrafanaDashboardAnnotations struct {
List []interface{} `json:"list"`
GraphTooltip int `json:"graphTooltip"`
}
type GrafanaDashboardTime ¶ added in v0.8.1
type GrafanaGetAnnotationsOptions ¶ added in v0.3.0
type GrafanaOptions ¶ added in v0.2.0
type GrafanaRenderImageOptions ¶ added in v0.2.0
type Graylog ¶
type Graylog struct {
// contains filtered or unexported fields
}
func NewGraylog ¶
func NewGraylog(options GraylogOptions) (*Graylog, error)
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, error)
func (*Jira) AssetsCustomSearch ¶ added in v0.9.7
func (j *Jira) AssetsCustomSearch(jiraOptions JiraOptions, assetsSearch JiraAssetsSearchOptions) ([]byte, error)
func (*Jira) AssetsSearch ¶ added in v0.9.7
func (j *Jira) AssetsSearch(options JiraAssetsSearchOptions) ([]byte, 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) CustomIssueChangeTransitions ¶ added in v0.6.17
func (j *Jira) CustomIssueChangeTransitions(jiraOptions JiraOptions, issueOptions JiraIssueOptions) ([]byte, error)
func (*Jira) CustomIssueCreate ¶ added in v0.4.3
func (j *Jira) CustomIssueCreate(jiraOptions JiraOptions, issueOptions JiraIssueOptions, issueCreateOptions JiraIssueCreateOptions) ([]byte, error)
func (*Jira) CustomIssueSearch ¶ added in v0.6.17
func (j *Jira) CustomIssueSearch(jiraOptions JiraOptions, issueSearch JiraIssueSearchOptions) ([]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) IssueChangeTransitions ¶ added in v0.6.17
func (j *Jira) IssueChangeTransitions(options JiraIssueOptions) ([]byte, error)
func (*Jira) IssueCreate ¶ added in v0.4.2
func (j *Jira) IssueCreate(issueOptions JiraIssueOptions, issueCreateOptions JiraIssueCreateOptions) ([]byte, error)
func (*Jira) IssueSearch ¶ added in v0.6.17
func (j *Jira) IssueSearch(options JiraIssueSearchOptions) ([]byte, error)
func (*Jira) IssueUpdate ¶ added in v0.4.2
func (j *Jira) IssueUpdate(options JiraIssueOptions) ([]byte, error)
type JiraAssetsSearchOptions ¶ added in v0.9.7
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 JiraIssueCreate ¶ added in v0.4.2
type JiraIssueCreate struct {
Fields *JiraIssueFields `json:"fields"`
}
type JiraIssueCreateOptions ¶ added in v0.4.2
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 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 JiraIssueSearchOptions ¶ added in v0.8.0
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 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
type ObserviumOptions ¶ added in v0.9.15
type OutputCode ¶ added in v0.7.2
type OutputCode struct {
Code int `json:"code"`
}
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 PrometheusOutputOptions ¶ added in v0.6.0
type Slack ¶
type Slack struct {
// contains filtered or unexported fields
}
func NewSlack ¶
func NewSlack(options SlackOptions) (*Slack, error)
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) 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
func (*Slack) UpdateUsergroup ¶ added in v0.8.6
func (s *Slack) UpdateUsergroup(options SlackUsergroupUsers) ([]byte, error)
type SlackMessage ¶ added in v0.2.0
type SlackOptions ¶
type SlackOutputOptions ¶ added in v0.2.0
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 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)
type TelegramDocumentOptions ¶ added in v0.2.1
type TelegramMessageOptions ¶ added in v0.2.1
type TelegramMessageOptions struct {
Text string
}
type TelegramOptions ¶
type TelegramPhotoOptions ¶ added in v0.2.1
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) CustomGetVMs ¶ added in v0.10.1
func (vc *VCenter) CustomGetVMs(options VCenterOptions, vmOptions VCenterVMOptions) ([]byte, error)
func (*VCenter) GetClusters ¶ added in v0.10.1
type VCenterHostOptions ¶ added in v0.10.1
type VCenterHostOptions struct {
Cluster string
}
type VCenterOptions ¶ added in v0.10.1
type VCenterSessionResponse ¶ added in v0.10.1
type VCenterSessionResponse struct {
Value string `json:"value"`
}
type VCenterVMOptions ¶ added in v0.10.1
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)
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 ZabbixHostOptions ¶ added in v0.10.1
type ZabbixOptions ¶ added in v0.10.0
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 ZabbixUserLoginResponse ¶ added in v0.10.0
type ZabbixUserLoginResponse struct {
Result string `json:"result"`
}
Click to show internal directories.
Click to hide internal directories.