vendors

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 41 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ZohoOAuthV2TokenURL          = "https://accounts.zoho.com/oauth/v2/token"
	Site24x7ApiURL               = "https://www.site24x7.com/api"
	Site24x7Monitors             = "/monitors"
	Site24x7MonitorPollNow       = "/monitor/poll_now"
	Site24x7MonitorStatusPollNow = "/monitor/status_poll_now"
	Site24x7MonitorsName         = "/monitors/name"
	Site24x7MonitorsActivate     = "/monitors/activate"
	Site24x7MonitorsSuspend      = "/monitors/suspend"
	Site24x7LogReports           = "/reports/log_reports"
	Site24x7LocationTemplate     = "/location_template"
	Site24x7LocationProfiles     = "/location_profiles"
	Site24x7ContentType          = "application/json"
)
View Source
const (
	Site24x7DataCollectionTypeNormal  = "1"
	Site24x7DataCollectionTypePollNow = "3"
)
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"
	VCenterRestVMPowerPathFmt         = "/rest/vcenter/vm/%s/power"
)

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(opts AWSOptions) (*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
	SessionToken string
}

type AWSOptions added in v0.15.13

type AWSOptions struct {
	Accounts    string
	Role        string
	RoleTimeout string
	AWSKeys
}

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 Catchpoint added in v0.15.16

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

func NewCatchpoint added in v0.15.16

func NewCatchpoint(options CatchpointOptions, logger common.Logger) *Catchpoint

func (*Catchpoint) CheckError added in v0.15.16

func (c *Catchpoint) CheckError(data []byte, e error) error

func (*Catchpoint) CustomGetInstantTestResult added in v0.15.16

func (c *Catchpoint) CustomGetInstantTestResult(catchpointOptions CatchpointOptions, testID string, nodeID int) ([]byte, error)

func (*Catchpoint) CustomGetNodesFromGroup added in v0.15.16

func (c *Catchpoint) CustomGetNodesFromGroup(catchpointOptions CatchpointOptions, options CatchpointNodeGroup) ([]byte, error)

func (*Catchpoint) CustomInstantTest added in v0.15.16

func (c *Catchpoint) CustomInstantTest(catchpointOptions CatchpointOptions, catchpointInstantTestOptions CatchpointInstantTestOptions) ([]byte, error)

func (*Catchpoint) CustomInstantTestWithNodeGroup added in v0.15.16

func (c *Catchpoint) CustomInstantTestWithNodeGroup(catchpointOptions CatchpointOptions, catchpointInstantTestWithNodeGroupOptions CatchpointInstantTestWithNodeGroupOptions) ([]byte, error)

func (*Catchpoint) CustomSearchNodesWithOptions added in v0.15.16

func (c *Catchpoint) CustomSearchNodesWithOptions(catchpointOptions CatchpointOptions, catchpointNodesGetAllOptions CatchpointSearchNodesWithOptions) ([]byte, error)

func (*Catchpoint) GenerateSummary added in v0.15.17

func (c *Catchpoint) GenerateSummary(results *[]CatchpointInstantTestResultReponse) ([]TestSummary, error)

func (*Catchpoint) GetInstantTestResult added in v0.15.16

func (c *Catchpoint) GetInstantTestResult(testID string, nodeID int) ([]byte, error)

func (*Catchpoint) GetLogReport added in v0.15.17

func (c *Catchpoint) GetLogReport(catchpointOptions CatchpointOptions, testID int, nodes []*Node) (*[]CatchpointInstantTestResultReponse, error)

func (*Catchpoint) GetNodesFromGroup added in v0.15.16

func (c *Catchpoint) GetNodesFromGroup(options CatchpointNodeGroup) ([]byte, error)

func (*Catchpoint) InstantTest added in v0.15.16

func (c *Catchpoint) InstantTest(options CatchpointInstantTestOptions) ([]byte, error)

func (*Catchpoint) InstantTestWithNodeGroup added in v0.15.16

func (c *Catchpoint) InstantTestWithNodeGroup(options CatchpointInstantTestWithNodeGroupOptions) ([]byte, error)

func (*Catchpoint) SearchNodesWithOptions added in v0.15.16

func (c *Catchpoint) SearchNodesWithOptions(options CatchpointSearchNodesWithOptions) ([]byte, error)

func (*Catchpoint) WaitPollSuccessOrCancel added in v0.15.17

func (c *Catchpoint) WaitPollSuccessOrCancel(ctx context.Context, pollDelay int, testID int, Nodes []*Node, catchpointOptions CatchpointOptions) bool

func (*Catchpoint) WaitPollSuccessOrCancelDetailed added in v0.15.17

func (c *Catchpoint) WaitPollSuccessOrCancelDetailed(ctx context.Context, pollDelay int, testID int, nodes []*Node, catchpointOptions CatchpointOptions) (bool, []*Node)

type CatchpointCountry added in v0.15.16

type CatchpointCountry struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type CatchpointHTTPMethodType added in v0.15.16

type CatchpointHTTPMethodType struct {
	ID int `json:"id"`
}

type CatchpointInstantTest added in v0.15.16

type CatchpointInstantTest struct {
	URL             string                     `json:"url"`
	NodesIds        *[]ID                      `json:"nodesIds"`
	HTTPMethodType  *CatchpointHTTPMethodType  `json:"httpMethodType"`
	InstantTestType *CatchpointInstantTestType `json:"instantTestType"`
	MonitorType     *CatchpointMonitorType     `json:"monitorType"`
}

type CatchpointInstantTestNodes added in v0.15.16

type CatchpointInstantTestNodes struct {
	ID                int    `json:"id"`
	Name              string `json:"name"`
	InstantTestStatus string `json:"instantTestStatus"`
}

type CatchpointInstantTestOptions added in v0.15.16

type CatchpointInstantTestOptions struct {
	URL             string
	NodesIds        string
	HTTPMethodType  int
	InstantTestType int
	MonitorType     int
	OnDemand        bool
}

type CatchpointInstantTestResult added in v0.15.16

type CatchpointInstantTestResult struct {
	Hosts      *CatchpointInstantTestResultHosts     `json:"hosts"`
	WebRecords *CatchpointInstantTestResultWebRecord `json:"webRecords"`
}

type CatchpointInstantTestResultData added in v0.15.16

type CatchpointInstantTestResultData struct {
	InstantTestStatus string                             `json:"instantTestStatus"`
	InstantTestRecord *CatchpointInstantTestResultRecord `json:"instantTestRecord"`
}

type CatchpointInstantTestResultHosts added in v0.15.16

type CatchpointInstantTestResultHosts struct {
	Fields  *[]CatchpointInstantTestResultHostsFields  `json:"fields"`
	Metrics *[]CatchpointInstantTestResultHostsMetrics `json:"metrics"`
}

type CatchpointInstantTestResultHostsFields added in v0.15.16

type CatchpointInstantTestResultHostsFields struct {
	Name  string `json:"name"`
	Index int    `json:"index"`
}

type CatchpointInstantTestResultHostsMetrics added in v0.15.16

type CatchpointInstantTestResultHostsMetrics struct {
	HostName string    `json:"hostName"`
	Items    []float64 `json:"items"`
}

type CatchpointInstantTestResultRecord added in v0.15.16

type CatchpointInstantTestResultRecord struct {
	TestResult  *CatchpointInstantTestResult `json:"testResult"`
	ID          int                          `json:"id"`
	Node        *Node                        `json:"node"`
	MonitorType *CatchpointMonitorType       `json:"monitorType"`
	PublicLink  string                       `json:"publicLink"`
}

type CatchpointInstantTestResultReponse added in v0.15.16

type CatchpointInstantTestResultReponse struct {
	*CatchpointReponse
	Data *CatchpointInstantTestResultData `json:"data,omitempty"`
}

type CatchpointInstantTestResultWebRecord added in v0.15.16

type CatchpointInstantTestResultWebRecord struct {
	Items *[]CatchpointInstantTestResultWebRecordItems `json:"items"`
}

type CatchpointInstantTestResultWebRecordItems added in v0.15.16

type CatchpointInstantTestResultWebRecordItems struct {
	IPAddess      string                                                  `json:"ipAddress"`
	NavigationUrl *CatchpointInstantTestResultWebRecordItemsNavigationUrl `json:"navigationUrl"`
	ResponseCode  int                                                     `json:"responseCode"`
}

type CatchpointInstantTestResultWebRecordItemsNavigationUrl added in v0.15.16

type CatchpointInstantTestResultWebRecordItemsNavigationUrl struct {
	Scheme       string `json:"scheme"`
	Host         string `json:"host"`
	PathAndQuery string `json:"pathAndQuery"`
	AbsoluteUri  string `json:"absoluteUri"`
}

type CatchpointInstantTestType added in v0.15.16

type CatchpointInstantTestType struct {
	ID int `json:"id"`
}

type CatchpointInstantTestWithNodeGroup added in v0.15.16

type CatchpointInstantTestWithNodeGroup struct {
	URL             string                     `json:"url"`
	NodeGroupID     int                        `json:"nodesIds"`
	HTTPMethodType  *CatchpointHTTPMethodType  `json:"httpMethodType"`
	InstantTestType *CatchpointInstantTestType `json:"instantTestType"`
	MonitorType     *CatchpointMonitorType     `json:"monitorType"`
}

type CatchpointInstantTestWithNodeGroupOptions added in v0.15.16

type CatchpointInstantTestWithNodeGroupOptions struct {
	URL             string
	NodeGroupID     int
	HTTPMethodType  int
	InstantTestType int
	MonitorType     int
	OnDemand        bool
}

type CatchpointIstantTestData added in v0.15.16

type CatchpointIstantTestData struct {
	ID               int                           `json:"id"`
	InstantTestNodes *[]CatchpointInstantTestNodes `json:"instantTestNodes"`
}

type CatchpointIstantTestResponse added in v0.15.16

type CatchpointIstantTestResponse struct {
	Data *CatchpointIstantTestData `json:"data,omitempty"`
	*CatchpointReponse
}

type CatchpointMessage added in v0.15.16

type CatchpointMessage struct {
	Message string `json:"message"`
}

type CatchpointMonitorType added in v0.15.16

type CatchpointMonitorType struct {
	ID int `json:"id"`
}

type CatchpointNetworkType added in v0.15.16

type CatchpointNetworkType struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type CatchpointNodeGroup added in v0.15.16

type CatchpointNodeGroup struct {
	ID int `json:"id"`
}

type CatchpointOptions added in v0.15.16

type CatchpointOptions struct {
	APIToken string
	Timeout  int
	Insecure bool
	Retries  int
}

type CatchpointReponse added in v0.15.16

type CatchpointReponse struct {
	Errors    *[]CatchpointMessage `json:"errors"`
	Messages  *[]CatchpointMessage `json:"messages"`
	Completed bool                 `json:"completed"`
	TraceId   string               `json:"traceId"`
}

type CatchpointSearchNodesWithOptions added in v0.15.16

type CatchpointSearchNodesWithOptions struct {
	Name        string
	Targeted    bool
	Active      bool
	Paused      bool
	NetworkType int
	City        string
	Country     string
	IPv6        bool
	ASN         string
	AsNumber    int
	PageNumber  int
	PageSize    int
}

type CatchpointSearchNodesWithOptionsData added in v0.15.16

type CatchpointSearchNodesWithOptionsData struct {
	Nodes *[]Node `json:"nodes"`
}

type CatchpointSearchNodesWithOptionsResponse added in v0.15.16

type CatchpointSearchNodesWithOptionsResponse struct {
	Data      *CatchpointSearchNodesWithOptionsData `json:"data"`
	Messages  *[]CatchpointMessage                  `json:"messages"`
	Completed bool                                  `json:"completed"`
}

type Crypto added in v0.15.17

type Crypto struct {
}

func NewCrypto added in v0.15.17

func NewCrypto() *Crypto

func (*Crypto) CustomRCADecrypt added in v0.15.17

func (c *Crypto) CustomRCADecrypt(decryptOptions CryptoRCADecryptOptions) ([]byte, error)

func (*Crypto) CustomRCAEncrypt added in v0.15.17

func (c *Crypto) CustomRCAEncrypt(encryptOptions CryptoRCAEncryptOptions) ([]byte, error)

func (*Crypto) CustomRCAGenerateKey added in v0.15.17

func (c *Crypto) CustomRCAGenerateKey(keyOptions CryptoRCAKeyOptions) ([]byte, error)

func (*Crypto) RCAGenerateKey added in v0.15.17

func (c *Crypto) RCAGenerateKey() ([]byte, error)

type CryptoRCADecryptOptions added in v0.15.17

type CryptoRCADecryptOptions struct {
	Text       string
	PrivateKey string
}

type CryptoRCAEncryptOptions added in v0.15.17

type CryptoRCAEncryptOptions struct {
	Text      string
	PublicKey string
}

type CryptoRCAKeyOptions added in v0.15.17

type CryptoRCAKeyOptions struct {
	Size int
}

type CustomSearchAssetsResponse added in v0.16.11

type CustomSearchAssetsResponse struct {
	ObjectTypeAttributes []IQLObjectTypeAttribute `json:"attributes"`
	ObjectEntries        []IQLObjectEntry         `json:"objects"`
}

func (CustomSearchAssetsResponse) MarshalEasyJSON added in v0.16.11

func (v CustomSearchAssetsResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CustomSearchAssetsResponse) MarshalJSON added in v0.16.11

func (v CustomSearchAssetsResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CustomSearchAssetsResponse) UnmarshalEasyJSON added in v0.16.11

func (v *CustomSearchAssetsResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CustomSearchAssetsResponse) UnmarshalJSON added in v0.16.11

func (v *CustomSearchAssetsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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 GetConversationHistoryParameters added in v0.17.11

type GetConversationHistoryParameters struct {
	ChannelID          string
	Cursor             string
	Inclusive          bool
	Latest             string
	Limit              int
	Oldest             string
	IncludeAllMetadata bool
}

type GetConversationHistoryResponse added in v0.17.11

type GetConversationHistoryResponse struct {
	Ok       bool   `json:"ok"`
	Oldest   string `json:"oldest"`
	Messages []struct {
		Type      string `json:"type"`
		Ts        string `json:"ts"`
		Text      string `json:"text"`
		Team      string `json:"team"`
		Reactions []struct {
			Name  string   `json:"name"`
			Users []string `json:"users"`
			Count int      `json:"count"`
		} `json:"reactions"`
	} `json:"messages"`
	HasMore          bool `json:"has_more"`
	PinCount         int  `json:"pin_count"`
	ResponseMetadata struct {
		NextCursor string `json:"next_cursor"`
	} `json:"response_metadata"`
}

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) CreateMeetSpace added in v0.18.0

func (g *Google) CreateMeetSpace(meetOptions GoogleMeetOptions) (*GoogleMeetSpaceResponse, 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)

func (*Google) CustomCreateMeetSpace added in v0.18.0

func (g *Google) CustomCreateMeetSpace(googleOptions GoogleOptions, meetOptions GoogleMeetOptions) (*GoogleMeetSpaceResponse, 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 GoogleJWTClaims added in v0.18.0

type GoogleJWTClaims struct {
	Iss   string `json:"iss"`   // service account email
	Sub   string `json:"sub"`   // impersonation email (for domain-wide delegation)
	Scope string `json:"scope"` // required scopes
	Aud   string `json:"aud"`   // token endpoint
	Exp   int64  `json:"exp"`   // expiration time
	Iat   int64  `json:"iat"`   // issued at time
}

JWT Claims for service account

type GoogleJWTHeader added in v0.18.0

type GoogleJWTHeader struct {
	Alg string `json:"alg"`
	Typ string `json:"typ"`
}

JWT Header

type GoogleMeetOptions added in v0.18.0

type GoogleMeetOptions struct {
	AccessType string
}

type GoogleMeetSpaceConfig added in v0.18.0

type GoogleMeetSpaceConfig struct {
	AccessType string `json:"accessType"`
}

type GoogleMeetSpaceRequest added in v0.18.0

type GoogleMeetSpaceRequest struct {
	Config GoogleMeetSpaceConfig `json:"config"`
}

type GoogleMeetSpaceResponse added in v0.18.0

type GoogleMeetSpaceResponse struct {
	Name        string `json:"name"`
	MeetingUri  string `json:"meetingUri"`
	MeetingCode string `json:"meetingCode"`
}

type GoogleOptions added in v0.3.0

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

type GoogleServiceAccount added in v0.18.0

type GoogleServiceAccount struct {
	Type                    string `json:"type"`
	ProjectID               string `json:"project_id"`
	PrivateKeyID            string `json:"private_key_id"`
	PrivateKey              string `json:"private_key"`
	ClientEmail             string `json:"client_email"`
	ClientID                string `json:"client_id"`
	AuthURI                 string `json:"auth_uri"`
	TokenURI                string `json:"token_uri"`
	AuthProviderX509CertURL string `json:"auth_provider_x509_cert_url"`
	ClientX509CertURL       string `json:"client_x509_cert_url"`
}

Service Account JSON structure

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 GrafanaDahboardOptions) ([]byte, error)

func (*Grafana) CopyLibraryElement added in v0.16.8

func (g *Grafana) CopyLibraryElement(grafanaLibraryElementOptions GrafanaLibraryElementOptions) ([]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 GrafanaDahboardOptions) ([]byte, error)

func (Grafana) CustomCopyDashboard added in v0.14.5

func (g Grafana) CustomCopyDashboard(grafanaOptions GrafanaOptions, grafanaDashboardOptions GrafanaDahboardOptions) ([]byte, error)

func (Grafana) CustomCopyLibraryElement added in v0.16.8

func (g Grafana) CustomCopyLibraryElement(grafanaOptions GrafanaOptions, grafanaLibraryElementOptions GrafanaLibraryElementOptions) ([]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 GrafanaDahboardOptions) ([]byte, error)

func (*Grafana) CustomDeleteDashboards added in v0.16.5

func (g *Grafana) CustomDeleteDashboards(grafanaOptions GrafanaOptions, grafanaDashboardOptions GrafanaDahboardOptions) ([]byte, error)

func (*Grafana) CustomGetAnnotations added in v0.4.3

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

func (*Grafana) CustomGetDashboards added in v0.4.3

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

func (*Grafana) CustomGetFolder added in v0.17.4

func (g *Grafana) CustomGetFolder(grafanaOptions GrafanaOptions, grafanaFolderOptions GrafanaFolderOptions) ([]byte, error)

func (*Grafana) CustomGetLibraryElement added in v0.16.8

func (g *Grafana) CustomGetLibraryElement(grafanaOptions GrafanaOptions, grafanaLibraryElementOptions GrafanaLibraryElementOptions) ([]byte, error)

func (*Grafana) CustomRenderImage added in v0.4.3

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

func (*Grafana) CustomSearchDashboards added in v0.16.5

func (g *Grafana) CustomSearchDashboards(grafanaOptions GrafanaOptions, grafanaDashboardOptions GrafanaDahboardOptions) ([]byte, error)

func (*Grafana) CustomSearchLibraryElements added in v0.16.8

func (g *Grafana) CustomSearchLibraryElements(grafanaOptions GrafanaOptions, grafanaLibraryElementOptions GrafanaLibraryElementOptions) ([]byte, error)

func (*Grafana) DeleteDashboards added in v0.16.5

func (g *Grafana) DeleteDashboards(dashboardOptions GrafanaDahboardOptions) ([]byte, error)

func (*Grafana) GetAnnotations added in v0.3.0

func (g *Grafana) GetAnnotations(dashboardOptions GrafanaDahboardOptions, annotationsOptions GrafanaGetAnnotationsOptions) ([]byte, error)

func (*Grafana) GetDashboards added in v0.2.0

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

func (*Grafana) GetFolder added in v0.17.4

func (g *Grafana) GetFolder(folderOptions GrafanaFolderOptions) ([]byte, error)

func (*Grafana) GetLibraryElement added in v0.16.8

func (g *Grafana) GetLibraryElement(libraryElementOptions GrafanaLibraryElementOptions) ([]byte, error)

func (*Grafana) RenderImage added in v0.2.0

func (g *Grafana) RenderImage(dashboardOptions GrafanaDahboardOptions, renderOptions GrafanaRenderImageOptions) ([]byte, error)

func (*Grafana) SearchDashboards added in v0.16.5

func (g *Grafana) SearchDashboards(dashboardOptions GrafanaDahboardOptions) ([]byte, error)

func (*Grafana) SearchLibraryElements added in v0.16.8

func (g *Grafana) SearchLibraryElements(libraryElementOptions GrafanaLibraryElementOptions) ([]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 {
	URL         string
	Timeout     int
	Insecure    bool
	APIKey      string
	OrgID       string
	UID         string
	FolderUID   string
	FolderID    int
	Annotations []string
	PanelIDs    []string
	PanelTitles []string
	PanelSeries []string
	LegendRight bool
	Arrange     bool
	Count       int
	Width       int
	Height      int
}

type GrafanaClonedLibraryElementOptions added in v0.16.8

type GrafanaClonedLibraryElementOptions struct {
	URL      string
	Timeout  int
	Insecure bool
	APIKey   string
	OrgID    string
	Name     string
	UID      string
	FolderID int
	Kind     string
}

type GrafanaCreateAnnotationOptions added in v0.3.3

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

type GrafanaDahboardOptions added in v0.16.4

type GrafanaDahboardOptions struct {
	Title     string
	UID       string
	Slug      string
	Timezone  string
	FolderUID string
	FolderID  int
	Tags      []string
	From      string
	To        string
	SaveUID   bool
	Overwrite bool
	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 GrafanaFolderOptions added in v0.17.4

type GrafanaFolderOptions struct {
	Title string
	UID   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
	MatchAny    bool
}

type GrafanaLibraryElement added in v0.16.8

type GrafanaLibraryElement struct {
	ID          int                       `json:"id,omitempty"`
	OrgID       int                       `json:"orgId,omitempty"`
	FolderID    int                       `json:"folderId,omitempty"`
	UID         string                    `json:"uid,omitempty"`
	Name        string                    `json:"name,omitempty"`
	Kind        int                       `json:"kind,omitempty"`
	Type        string                    `json:"type,omitempty"`
	Description string                    `json:"description,omitempty"`
	Model       interface{}               `json:"model,omitempty"`
	Version     int                       `json:"version,omitempty"`
	Meta        GrafanaLibraryElementMeta `json:"meta,omitempty"`
}

type GrafanaLibraryElementCreatedBy added in v0.16.8

type GrafanaLibraryElementCreatedBy struct {
	ID        int    `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	AvatarURL string `json:"avatarUrl,omitempty"`
}

type GrafanaLibraryElementMeta added in v0.16.8

type GrafanaLibraryElementMeta struct {
	FolderName          string                         `json:"folderName,,omitempty"`
	FolderUID           string                         `json:"folderUid,omitempty"`
	ConnectedDashboards int                            `json:"connectedDashboards,omitempty"`
	Created             time.Time                      `json:"created,omitempty"`
	Updated             time.Time                      `json:"updated,omitempty"`
	CreatedBy           GrafanaLibraryElementCreatedBy `json:"createdBy,omitempty"`
	UpdatedBy           GrafanaLibraryElementUpdatedBy `json:"updatedBy,omitempty"`
}

type GrafanaLibraryElementOptions added in v0.16.8

type GrafanaLibraryElementOptions struct {
	Name     string
	UID      string
	FolderID int
	Kind     string
	SaveUID  bool
	Cloned   GrafanaClonedLibraryElementOptions
}

type GrafanaLibraryElementResult added in v0.16.8

type GrafanaLibraryElementResult struct {
	Result GrafanaLibraryElement `json:"result,omitempty"`
}

type GrafanaLibraryElementSearchResult added in v0.16.8

type GrafanaLibraryElementSearchResult struct {
	Result struct {
		TotalCount int                     `json:"totalCount,omitempty"`
		Elements   []GrafanaLibraryElement `json:"elements,omitempty"`
		Page       int                     `json:"page,omitempty"`
		PerPage    int                     `json:"perPage,omitempty"`
	} `json:"result,omitempty"`
}

type GrafanaLibraryElementUpdatedBy added in v0.16.8

type GrafanaLibraryElementUpdatedBy struct {
	ID        int    `json:"id,omitempty"`
	Name      string `json:"name,omitempty"`
	AvatarURL string `json:"avatarUrl,omitempty"`
}

type GrafanaOptions added in v0.2.0

type GrafanaOptions struct {
	URL      string
	Timeout  int
	Insecure bool
	APIKey   string
	OrgID    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 ID added in v0.15.16

type ID struct {
	ID int `json:"id"`
}

type IQLObjectAttribute added in v0.16.11

type IQLObjectAttribute struct {
	Id                    int                       `json:"id"`
	ObjectTypeAttributeId int                       `json:"objectTypeAttributeId"`
	ObjectAttributeValues []IQLObjectAttributeValue `json:"objectAttributeValues"`
	ObjectId              int                       `json:"objectId"`
}

func (IQLObjectAttribute) MarshalEasyJSON added in v0.16.11

func (v IQLObjectAttribute) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IQLObjectAttribute) MarshalJSON added in v0.16.11

func (v IQLObjectAttribute) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IQLObjectAttribute) UnmarshalEasyJSON added in v0.16.11

func (v *IQLObjectAttribute) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IQLObjectAttribute) UnmarshalJSON added in v0.16.11

func (v *IQLObjectAttribute) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IQLObjectAttributeValue added in v0.16.11

type IQLObjectAttributeValue struct {
	Value          string `json:"value,omitempty"`
	DisplayValue   string `json:"displayValue"`
	SearchValue    string `json:"searchValue"`
	ReferencedType bool   `json:"referencedType"`
	Status         struct {
		Id             int    `json:"id"`
		Name           string `json:"name"`
		Category       int    `json:"category"`
		ObjectSchemaId int    `json:"objectSchemaId"`
	} `json:"status,omitempty"`
	ReferencedObject IQLObjectEntry `json:"referencedObject,omitempty"`
}

func (IQLObjectAttributeValue) MarshalEasyJSON added in v0.16.11

func (v IQLObjectAttributeValue) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IQLObjectAttributeValue) MarshalJSON added in v0.16.11

func (v IQLObjectAttributeValue) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IQLObjectAttributeValue) UnmarshalEasyJSON added in v0.16.11

func (v *IQLObjectAttributeValue) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IQLObjectAttributeValue) UnmarshalJSON added in v0.16.11

func (v *IQLObjectAttributeValue) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IQLObjectEntry added in v0.16.11

type IQLObjectEntry struct {
	Id         int                  `json:"id"`
	Label      string               `json:"label"`
	ObjectKey  string               `json:"objectKey"`
	ObjectType IQLObjectType        `json:"objectType"`
	Created    time.Time            `json:"created"`
	Updated    time.Time            `json:"updated"`
	Timestamp  int64                `json:"timestamp"`
	Attributes []IQLObjectAttribute `json:"attributes"`
	Name       string               `json:"name"`
	Archived   bool                 `json:"archived"`
}

func (IQLObjectEntry) MarshalEasyJSON added in v0.16.11

func (v IQLObjectEntry) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IQLObjectEntry) MarshalJSON added in v0.16.11

func (v IQLObjectEntry) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IQLObjectEntry) UnmarshalEasyJSON added in v0.16.11

func (v *IQLObjectEntry) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IQLObjectEntry) UnmarshalJSON added in v0.16.11

func (v *IQLObjectEntry) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IQLObjectType added in v0.16.11

type IQLObjectType struct {
	Id                        int       `json:"id"`
	Name                      string    `json:"name"`
	Type                      int       `json:"type"`
	Position                  int       `json:"position"`
	Created                   time.Time `json:"created"`
	Updated                   time.Time `json:"updated"`
	ObjectCount               int       `json:"objectCount"`
	ParentObjectTypeId        int       `json:"parentObjectTypeId"`
	ObjectSchemaId            int       `json:"objectSchemaId"`
	Inherited                 bool      `json:"inherited"`
	AbstractObjectType        bool      `json:"abstractObjectType"`
	ParentObjectTypeInherited bool      `json:"parentObjectTypeInherited"`
}

func (IQLObjectType) MarshalEasyJSON added in v0.16.11

func (v IQLObjectType) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IQLObjectType) MarshalJSON added in v0.16.11

func (v IQLObjectType) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IQLObjectType) UnmarshalEasyJSON added in v0.16.11

func (v *IQLObjectType) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IQLObjectType) UnmarshalJSON added in v0.16.11

func (v *IQLObjectType) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IQLObjectTypeAttribute added in v0.16.11

type IQLObjectTypeAttribute struct {
	Id          int    `json:"id"`
	Name        string `json:"name"`
	Label       bool   `json:"label"`
	Type        int    `json:"type"`
	DefaultType struct {
		Id   int    `json:"id"`
		Name string `json:"name"`
	} `json:"defaultType,omitempty"`
	Hidden                  bool          `json:"hidden"`
	IncludeChildObjectTypes bool          `json:"includeChildObjectTypes"`
	UniqueAttribute         bool          `json:"uniqueAttribute"`
	Options                 string        `json:"options"`
	Position                int           `json:"position"`
	Description             string        `json:"description,omitempty"`
	TypeValueMulti          []string      `json:"typeValueMulti,omitempty"`
	ReferenceObjectTypeId   int           `json:"referenceObjectTypeId,omitempty"`
	ReferenceObjectType     IQLObjectType `json:"referenceObjectType,omitempty"`
	Suffix                  string        `json:"suffix,omitempty"`
	RegexValidation         string        `json:"regexValidation,omitempty"`
	QlQuery                 string        `json:"qlQuery,omitempty"`
	Iql                     string        `json:"iql,omitempty"`
}

func (IQLObjectTypeAttribute) MarshalEasyJSON added in v0.16.11

func (v IQLObjectTypeAttribute) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IQLObjectTypeAttribute) MarshalJSON added in v0.16.11

func (v IQLObjectTypeAttribute) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IQLObjectTypeAttribute) UnmarshalEasyJSON added in v0.16.11

func (v *IQLObjectTypeAttribute) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IQLObjectTypeAttribute) UnmarshalJSON added in v0.16.11

func (v *IQLObjectTypeAttribute) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type IQLObjectsResponse added in v0.16.11

type IQLObjectsResponse struct {
	ObjectEntries         []IQLObjectEntry         `json:"objectEntries"`
	ObjectTypeAttributes  []IQLObjectTypeAttribute `json:"objectTypeAttributes"`
	ObjectTypeId          int                      `json:"objectTypeId"`
	ObjectTypeIsInherited bool                     `json:"objectTypeIsInherited"`
	AbstractObjectType    bool                     `json:"abstractObjectType"`
	TotalFilterCount      int                      `json:"totalFilterCount"`
	StartIndex            int                      `json:"startIndex"`
	ToIndex               int                      `json:"toIndex"`
	PageObjectSize        int                      `json:"pageObjectSize"`
	PageNumber            int                      `json:"pageNumber"`
	OrderWay              string                   `json:"orderWay"`
	QlQuery               string                   `json:"qlQuery"`
	QlQuerySearchResult   bool                     `json:"qlQuerySearchResult"`
	ConversionPossible    bool                     `json:"conversionPossible"`
	Iql                   string                   `json:"iql"`
	IqlSearchResult       bool                     `json:"iqlSearchResult"`
	PageSize              int                      `json:"pageSize"`
}

func (IQLObjectsResponse) MarshalEasyJSON added in v0.16.11

func (v IQLObjectsResponse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (IQLObjectsResponse) MarshalJSON added in v0.16.11

func (v IQLObjectsResponse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*IQLObjectsResponse) UnmarshalEasyJSON added in v0.16.11

func (v *IQLObjectsResponse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*IQLObjectsResponse) UnmarshalJSON added in v0.16.11

func (v *IQLObjectsResponse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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(createOptions 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) CustomMoveIssue added in v0.15.18

func (j *Jira) CustomMoveIssue(jiraOptions JiraOptions, moveOptions JiraIssueOptions) ([]byte, error)

func (*Jira) CustomSearchAssets added in v0.12.0

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

func (*Jira) CustomSearchIssue added in v0.12.0

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

func (*Jira) CustomUpdateAsset added in v0.14.10

func (j *Jira) CustomUpdateAsset(jiraOptions JiraOptions, updateOptions JiraUpdateAssetOptions) ([]byte, error)

func (*Jira) CustomUpdateIssue added in v0.12.0

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

func (*Jira) GetIssueTransitions added in v0.14.15

func (j *Jira) GetIssueTransitions(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) MoveIssue added in v0.15.18

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

func (*Jira) SearchAssets added in v0.12.0

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

func (*Jira) SearchIssue added in v0.12.0

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

func (*Jira) UpdateAsset added in v0.14.10

func (j *Jira) UpdateAsset(updateOptions JiraUpdateAssetOptions) ([]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
	BusinessProcesses *JiraAssetAttribute
	Team              *JiraAssetAttribute
	Dependencies      *JiraAssetAttribute
	Group             *JiraAssetAttribute
	IsThirdParty      *JiraAssetAttribute
	IsDecommissioned  *JiraAssetAttribute
}

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 JiraIssueComponents added in v0.14.12

type JiraIssueComponents 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"`
	Components  *[]JiraIssueComponents `json:"components,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
	TransitionID       string
	Components         string
	Labels             []string
	UpdateAddLabels    []string
	UpdateRemoveLabels []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"`
	Update *JiraIssueUpdatePayload `json:"update"`
}

type JiraIssueUpdateLabelOperation added in v0.17.13

type JiraIssueUpdateLabelOperation struct {
	Add    string `json:"add,omitempty"`
	Remove string `json:"remove,omitempty"`
}

type JiraIssueUpdatePayload added in v0.17.13

type JiraIssueUpdatePayload struct {
	Labels []JiraIssueUpdateLabelOperation `json:"labels,omitempty"`
}

type JiraOptions added in v0.1.0

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

type JiraSearchAssetOptions added in v0.14.10

type JiraSearchAssetOptions struct {
	SearchPattern string
	ResultPerPage int
}

type JiraSearchIssueOptions added in v0.12.0

type JiraSearchIssueOptions struct {
	SearchPattern string
	MaxResults    int
	Fields        []string
}

type JiraTransition added in v0.6.17

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

type JiraTransitions added in v0.14.15

type JiraTransitions struct {
	Transitions []JiraTransition `json:"transitions"`
}

type JiraUpdateAssetOptions added in v0.14.10

type JiraUpdateAssetOptions struct {
	ObjectId string
	Json     string
}

type K8s added in v0.18.0

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

func NewK8s added in v0.18.0

func NewK8s(options K8sOptions, logger common.Logger) *K8s

func (*K8s) CustomPodDelete added in v0.18.0

func (k *K8s) CustomPodDelete(k8sOptions K8sOptions, k8sPodOptions K8sPodOptions) ([]byte, error)

func (*K8s) PodDelete added in v0.18.0

func (k *K8s) PodDelete(options K8sPodOptions) ([]byte, error)

type K8sOptions added in v0.18.0

type K8sOptions struct {
	Config  string
	Timeout int
}

type K8sPodOptions added in v0.18.0

type K8sPodOptions struct {
	Namespace string
	Name      string
}

type Ldap added in v0.16.8

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

func NewLdapClient added in v0.16.8

func NewLdapClient(options LdapOptions, logger common.Logger) (*Ldap, error)

func (*Ldap) Close added in v0.16.8

func (l *Ldap) Close()

func (*Ldap) Connect added in v0.16.8

func (l *Ldap) Connect() error

func (*Ldap) GetGroupMembers added in v0.16.8

func (l *Ldap) GetGroupMembers(filter string, attributes []string) ([]byte, error)

func (*Ldap) SearchWithScope added in v0.16.8

func (l *Ldap) SearchWithScope(baseDN string, scope int, filter string, attributes []string) (*ldap.SearchResult, error)

type LdapOptions added in v0.16.8

type LdapOptions struct {
	URL      string // ldaps://your-server:636
	User     string
	Password string
	BaseDN   string
	Insecure bool
	Timeout  int
}

type Netbox added in v0.17.5

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

func NewNetbox added in v0.17.5

func NewNetbox(options NetboxOptions) *Netbox

func (*Netbox) CustomGetDevices added in v0.17.5

func (n *Netbox) CustomGetDevices(options NetboxOptions, netboxDeviceOptions NetboxDeviceOptions) ([]byte, error)

func (*Netbox) GetDevices added in v0.17.5

func (n *Netbox) GetDevices(deviceOptions NetboxDeviceOptions) ([]byte, error)

type NetboxDevice added in v0.17.6

type NetboxDevice struct {
	ID         int    `json:"id,omitempty"`
	URL        string `json:"url,omitempty"`
	DisplayURL string `json:"display_url,omitempty"`
	Display    string `json:"display,omitempty"`
	Name       string `json:"name,omitempty"`
	DeviceType struct {
		ID           int    `json:"id,omitempty"`
		URL          string `json:"url,omitempty"`
		Display      string `json:"display,omitempty"`
		Manufacturer struct {
			ID          int    `json:"id,omitempty"`
			URL         string `json:"url,omitempty"`
			Display     string `json:"display,omitempty"`
			Name        string `json:"name,omitempty"`
			Slug        string `json:"slug,omitempty"`
			Description string `json:"description,omitempty"`
		} `json:"manufacturer,omitempty"`
		Model       string `json:"model,omitempty"`
		Slug        string `json:"slug,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"device_type,omitempty"`
	Role struct {
		ID          int    `json:"id,omitempty"`
		URL         string `json:"url,omitempty"`
		Display     string `json:"display,omitempty"`
		Name        string `json:"name,omitempty"`
		Slug        string `json:"slug,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"role,omitempty"`
	Tenant struct {
		ID          int    `json:"id,omitempty"`
		URL         string `json:"url,omitempty"`
		Display     string `json:"display,omitempty"`
		Name        string `json:"name,omitempty"`
		Slug        string `json:"slug,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"tenant,omitempty"`
	Platform struct {
		ID          int    `json:"id,omitempty"`
		URL         string `json:"url,omitempty"`
		Display     string `json:"display,omitempty"`
		Name        string `json:"name,omitempty"`
		Slug        string `json:"slug,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"platform,omitempty"`
	Serial   string `json:"serial,omitempty"`
	AssetTag any    `json:"asset_tag,omitempty"`
	Site     struct {
		ID          int    `json:"id,omitempty"`
		URL         string `json:"url,omitempty"`
		Display     string `json:"display,omitempty"`
		Name        string `json:"name,omitempty"`
		Slug        string `json:"slug,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"site,omitempty"`
	Location struct {
		ID          int    `json:"id,omitempty"`
		URL         string `json:"url,omitempty"`
		Display     string `json:"display,omitempty"`
		Name        string `json:"name,omitempty"`
		Slug        string `json:"slug,omitempty"`
		Description string `json:"description,omitempty"`
		RackCount   int    `json:"rack_count,omitempty"`
		Depth       int    `json:"_depth,omitempty"`
	} `json:"location,omitempty"`
	Rack struct {
		ID          int    `json:"id,omitempty"`
		URL         string `json:"url,omitempty"`
		Display     string `json:"display,omitempty"`
		Name        string `json:"name,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"rack,omitempty"`
	Position float64 `json:"position,omitempty"`
	Face     struct {
		Value string `json:"value,omitempty"`
		Label string `json:"label,omitempty"`
	} `json:"face,omitempty"`
	Latitude     any `json:"latitude,omitempty"`
	Longitude    any `json:"longitude,omitempty"`
	ParentDevice any `json:"parent_device,omitempty"`
	Status       struct {
		Value string `json:"value,omitempty"`
		Label string `json:"label,omitempty"`
	} `json:"status,omitempty"`
	Airflow struct {
		Value string `json:"value,omitempty"`
		Label string `json:"label,omitempty"`
	} `json:"airflow,omitempty"`
	PrimaryIP struct {
		ID      int    `json:"id,omitempty"`
		URL     string `json:"url,omitempty"`
		Display string `json:"display,omitempty"`
		Family  struct {
			Value int    `json:"value,omitempty"`
			Label string `json:"label,omitempty"`
		} `json:"family,omitempty"`
		Address     string `json:"address,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"primary_ip,omitempty"`
	PrimaryIP4 struct {
		ID      int    `json:"id,omitempty"`
		URL     string `json:"url,omitempty"`
		Display string `json:"display,omitempty"`
		Family  struct {
			Value int    `json:"value,omitempty"`
			Label string `json:"label,omitempty"`
		} `json:"family,omitempty"`
		Address     string `json:"address,omitempty"`
		Description string `json:"description,omitempty"`
	} `json:"primary_ip4,omitempty"`
	PrimaryIP6       any    `json:"primary_ip6,omitempty"`
	OobIP            any    `json:"oob_ip,omitempty"`
	Cluster          any    `json:"cluster,omitempty"`
	VirtualChassis   any    `json:"virtual_chassis,omitempty"`
	VcPosition       any    `json:"vc_position,omitempty"`
	VcPriority       any    `json:"vc_priority,omitempty"`
	Description      string `json:"description,omitempty"`
	Comments         string `json:"comments,omitempty"`
	ConfigTemplate   any    `json:"config_template,omitempty"`
	LocalContextData any    `json:"local_context_data,omitempty"`
	Tags             []any  `json:"tags,omitempty"`
	CustomFields     struct {
		BrocadeFcOemSerialnumber any      `json:"brocade_fc_oem_serialnumber,omitempty"`
		BrocadeFcSwitchLid       any      `json:"brocade_fc_switch_lid,omitempty"`
		BrocadeFcSwitchPrincipal any      `json:"brocade_fc_switch_principal,omitempty"`
		BrocadeFcSwitchType      any      `json:"brocade_fc_switch_type,omitempty"`
		BrocadeFosDomainID       any      `json:"brocade_fos_domain_id,omitempty"`
		BrocadeFosLicensedPorts  any      `json:"brocade_fos_licensed_ports,omitempty"`
		JiraAssetsID             string   `json:"jira_assets_id,omitempty"`
		InstallDate              string   `json:"install_date,omitempty"`
		BiosVersion              string   `json:"bios_version,omitempty"`
		FirmwareVersion          any      `json:"firmware_version,omitempty"`
		SoftwareVersion          string   `json:"software_version,omitempty"`
		ReferencedAssets         any      `json:"referenced_assets,omitempty"`
		WarrantyContractNumber   any      `json:"warranty_contract_number,omitempty"`
		WarrantyContractType     any      `json:"warranty_contract_type,omitempty"`
		WarrantyExpirationDate   any      `json:"warranty_expiration_date,omitempty"`
		HumidSensors             any      `json:"humid_sensors,omitempty"`
		TempSensors              any      `json:"temp_sensors,omitempty"`
		HostCPUModel             any      `json:"host_cpu_model,omitempty"`
		HostCurrentCPUSockets    any      `json:"host_current_cpu_sockets,omitempty"`
		HostCurrentDimmSlots     any      `json:"host_current_dimm_slots,omitempty"`
		HostMaxCPUSockets        any      `json:"host_max_cpu_sockets,omitempty"`
		HostMaxDimmSlots         any      `json:"host_max_dimm_slots,omitempty"`
		HostMemory               any      `json:"host_memory,omitempty"`
		HostPartnumber           any      `json:"host_partnumber,omitempty"`
		HostSku                  any      `json:"host_sku,omitempty"`
		HostSmbiosUUID           any      `json:"host_smbios_uuid,omitempty"`
		HostUUID                 any      `json:"host_uuid,omitempty"`
		Hostname                 string   `json:"hostname,omitempty"`
		NetworkDeviceSystemMac   any      `json:"network_device_system_mac,omitempty"`
		NetworkDeviceType        []string `json:"network_device_type,omitempty"`
		NetworkDeviceObserviumID any      `json:"network_device_observium_id,omitempty"`
		PduDetails               any      `json:"pdu_details,omitempty"`
	} `json:"custom_fields,omitempty"`
	Created                time.Time `json:"created,omitempty"`
	LastUpdated            time.Time `json:"last_updated,omitempty"`
	ConsolePortCount       int       `json:"console_port_count,omitempty"`
	ConsoleServerPortCount int       `json:"console_server_port_count,omitempty"`
	PowerPortCount         int       `json:"power_port_count,omitempty"`
	PowerOutletCount       int       `json:"power_outlet_count,omitempty"`
	InterfaceCount         int       `json:"interface_count,omitempty"`
	FrontPortCount         int       `json:"front_port_count,omitempty"`
	RearPortCount          int       `json:"rear_port_count,omitempty"`
	DeviceBayCount         int       `json:"device_bay_count,omitempty"`
	ModuleBayCount         int       `json:"module_bay_count,omitempty"`
	InventoryItemCount     int       `json:"inventory_item_count,omitempty"`
}

type NetboxDeviceOptions added in v0.17.5

type NetboxDeviceOptions struct {
	DeviceID string
}

type NetboxOptions added in v0.17.5

type NetboxOptions struct {
	Timeout  int
	Insecure bool
	URL      string
	Token    string
	Limit    string
	Brief    bool
	Filter   map[string]string
}

type NetxboxAPIResponse added in v0.17.5

type NetxboxAPIResponse struct {
	Count    int            `json:"count"`
	Next     string         `json:"next"`
	Previous string         `json:"previous"`
	Results  []NetboxDevice `json:"results"`
}

type Node added in v0.15.16

type Node struct {
	ID          int                    `json:"id"`
	Name        string                 `json:"name"`
	NetworkType *CatchpointNetworkType `json:"networkType"`
	Country     *CatchpointCountry     `json:"country"`
}

type NodeGroup added in v0.15.16

type NodeGroup struct {
	Data *NodeGroupData `json:"data"`
	*CatchpointReponse
}

type NodeGroupData added in v0.15.16

type NodeGroupData struct {
	NodeGroups *[]NodeGroupItem `json:"nodeGroups"`
}

type NodeGroupItem added in v0.15.16

type NodeGroupItem struct {
	ID            int           `json:"id"`
	Name          string        `json:"name"`
	DivisionID    int           `json:"divisionId"`
	Nodes         *[]Node       `json:"nodes"`
	NodeLocations []interface{} `json:"nodeLocations"`
}

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"`
	IncidentType *PagerDutyIncidentType `json:"incident_type,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
	IncidentType string
}

type PagerDutyIncidentRequest added in v0.12.0

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

type PagerDutyIncidentType added in v0.16.7

type PagerDutyIncidentType struct {
	Name string `json:"name"`
}

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 SSH added in v0.15.5

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

func NewSSH added in v0.15.5

func NewSSH(options SSHOptions) *SSH

func (*SSH) Run added in v0.15.5

func (s *SSH) Run(options SSHOptions) ([]byte, error)

type SSHOptions added in v0.15.5

type SSHOptions struct {
	User       string
	Address    string
	PrivateKey []byte
	Command    string
	Timeout    int
}

type Site24x7 added in v0.15.0

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

func NewSite24x7 added in v0.15.0

func NewSite24x7(options Site24x7Options, logger common.Logger) *Site24x7

func (*Site24x7) ActivateMonitor added in v0.15.3

func (s *Site24x7) ActivateMonitor(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CheckError added in v0.15.2

func (s *Site24x7) CheckError(data []byte, e error) error

func (*Site24x7) CheckResponse added in v0.15.0

func (s *Site24x7) CheckResponse(resp Site24x7Reponse) error

func (*Site24x7) CreateLocationProfile added in v0.15.0

func (s *Site24x7) CreateLocationProfile(options Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) CreateWebsiteMonitor added in v0.15.0

func (s *Site24x7) CreateWebsiteMonitor(options Site24x7WebsiteMonitorOptions) ([]byte, error)

func (*Site24x7) CustomActivateMonitor added in v0.15.3

func (s *Site24x7) CustomActivateMonitor(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomCreateLocationProfile added in v0.15.0

func (s *Site24x7) CustomCreateLocationProfile(site24x7Options Site24x7Options, createLocationOptions Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) CustomCreateWebsiteMonitor added in v0.15.0

func (s *Site24x7) CustomCreateWebsiteMonitor(site24x7Options Site24x7Options, createMonitorOptions Site24x7WebsiteMonitorOptions) ([]byte, error)

func (*Site24x7) CustomDeleteLocationProfile added in v0.15.0

func (s *Site24x7) CustomDeleteLocationProfile(site24x7Options Site24x7Options, deleteLocationOptions Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) CustomDeleteMonitor added in v0.15.0

func (s *Site24x7) CustomDeleteMonitor(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomGetAccessToken added in v0.15.0

func (s *Site24x7) CustomGetAccessToken(opts Site24x7Options) (string, error)

func (*Site24x7) CustomGetLocationProfiles added in v0.15.3

func (s *Site24x7) CustomGetLocationProfiles(site24x7Options Site24x7Options) ([]byte, error)

func (*Site24x7) CustomGetLocationTemplate added in v0.15.0

func (s *Site24x7) CustomGetLocationTemplate(site24x7Options Site24x7Options) ([]byte, error)

func (*Site24x7) CustomGetLogReport added in v0.15.0

func (s *Site24x7) CustomGetLogReport(site24x7Options Site24x7Options, logReportOptions Site24x7LogReportOptions) ([]byte, error)

func (*Site24x7) CustomGetPollingStatus added in v0.15.0

func (s *Site24x7) CustomGetPollingStatus(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomPollMonitor added in v0.15.0

func (s *Site24x7) CustomPollMonitor(site24x7Options Site24x7Options, pollMonitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) CustomRetrieveMonitorByName added in v0.15.3

func (s *Site24x7) CustomRetrieveMonitorByName(site24x7Options Site24x7Options, name string) ([]byte, error)

func (*Site24x7) CustomSuspendMonitor added in v0.15.3

func (s *Site24x7) CustomSuspendMonitor(site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) DeleteLocationProfile added in v0.15.0

func (s *Site24x7) DeleteLocationProfile(options Site24x7LocationProfileOptions) ([]byte, error)

func (*Site24x7) DeleteMonitor added in v0.15.0

func (s *Site24x7) DeleteMonitor(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) FindLocationByCountry added in v0.15.0

func (s *Site24x7) FindLocationByCountry(locations []*Site24x7LocationTemplateDataLocation, country string) *Site24x7LocationTemplateDataLocation

func (*Site24x7) FindLocationProfileByName added in v0.15.3

func (s *Site24x7) FindLocationProfileByName(site24x7Options Site24x7Options, name string) (string, error)

func (*Site24x7) GetLocationProfiles added in v0.15.3

func (s *Site24x7) GetLocationProfiles() ([]byte, error)

func (*Site24x7) GetLocationTemplate added in v0.15.0

func (s *Site24x7) GetLocationTemplate() ([]byte, error)

func (*Site24x7) GetLogReport added in v0.15.0

func (s *Site24x7) GetLogReport(options Site24x7LogReportOptions) ([]byte, error)

func (*Site24x7) GetPollingStatus added in v0.15.0

func (s *Site24x7) GetPollingStatus(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) PollMonitor added in v0.15.0

func (s *Site24x7) PollMonitor(options Site24x7MonitorOptions) ([]byte, error)

func (*Site24x7) PollMonitorWait added in v0.15.17

func (s *Site24x7) PollMonitorWait(ctx context.Context, site24x7Options Site24x7Options, monitorOptions Site24x7MonitorOptions, delay int, statuses []string) bool

func (*Site24x7) RetrieveMonitorByName added in v0.15.3

func (s *Site24x7) RetrieveMonitorByName(name string) ([]byte, error)

func (*Site24x7) SuspendMonitor added in v0.15.3

func (s *Site24x7) SuspendMonitor(options Site24x7MonitorOptions) ([]byte, error)

type Site24x7AuthReponse added in v0.15.0

type Site24x7AuthReponse struct {
	AccessToken string `json:"access_token"`
	ApiDomain   string `json:"api_domain"`
	TokenType   string `json:"token_type"`
	ExpiresIn   int    `json:"expires_in"`
}

type Site24x7DeleteData added in v0.15.3

type Site24x7DeleteData struct {
	ResourceName string `json:"resource_name"`
}

type Site24x7DeleteResponse added in v0.15.3

type Site24x7DeleteResponse struct {
	Site24x7Reponse
	Data *Site24x7DeleteData `json:"data,omitempty"`
}

type Site24x7ErrorReponse added in v0.15.2

type Site24x7ErrorReponse struct {
	ErrorCode int    `json:"error_code"`
	Message   string `json:"message"`
}

type Site24x7LocationProfile added in v0.15.0

type Site24x7LocationProfile struct {
	ProfileName                 string   `json:"profile_name"`
	PrimaryLocation             string   `json:"primary_location"`
	SecondaryCheckFrequency     string   `json:"secondary_check_frequency,omitempty"`
	SecondaryLocations          []string `json:"secondary_locations,omitempty"`
	RestrictAltLoc              bool     `json:"restrict_alt_loc,omitempty"`
	OuterRegionsLOcationConsent bool     `json:"outer_regions_location_consent,omitempty"`
}

type Site24x7LocationProfileData added in v0.15.0

type Site24x7LocationProfileData struct {
	ProfileID               string   `json:"profile_id"`
	ProfileName             string   `json:"profile_name"`
	PrimaryLocation         string   `json:"primary_location"`
	SecondaryCheckFrequency string   `json:"secondary_check_frequency,omitempty"`
	SecondaryLocations      []string `json:"secondary_locations,omitempty"`
}

type Site24x7LocationProfileOptions added in v0.15.0

type Site24x7LocationProfileOptions struct {
	ID                   string
	Name                 string
	LocationID           string
	SecondaryLocationIDs []string
}

type Site24x7LocationProfileReponse added in v0.15.0

type Site24x7LocationProfileReponse struct {
	Site24x7Reponse
	Data *Site24x7LocationProfileData `json:"data,omitempty"`
}

type Site24x7LocationProfilesReponse added in v0.15.3

type Site24x7LocationProfilesReponse struct {
	Site24x7Reponse
	Data []*Site24x7LocationProfileData `json:"data,omitempty"`
}

type Site24x7LocationTemplateData added in v0.15.0

type Site24x7LocationTemplateData struct {
	Locations []*Site24x7LocationTemplateDataLocation `json:"locations,omitempty"`
}

type Site24x7LocationTemplateDataLocation added in v0.15.0

type Site24x7LocationTemplateDataLocation struct {
	LocationID  string `json:"location_id"`
	DisplayName string `json:"display_name"`
	CityName    string `json:"city_name"`
	CityShort   string `json:"city_short"`
	CountryName string `json:"country_name"`
	Continent   string `json:"continent"`
	UseIpv6     bool   `json:"use_ipv6"`
	ProbInfo    string `json:"probe_info"`
}

type Site24x7LocationTemplateReponse added in v0.15.0

type Site24x7LocationTemplateReponse struct {
	Site24x7Reponse
	Data *Site24x7LocationTemplateData `json:"data,omitempty"`
}

type Site24x7LogReportData added in v0.15.0

type Site24x7LogReportData struct {
	Report []*Site24x7LogReportDataReport
}

type Site24x7LogReportDataReport added in v0.15.0

type Site24x7LogReportDataReport struct {
	ConnectionTime     string `json:"connection_time"`
	DnsTime            string `json:"dns_time"`
	SSLTime            string `json:"ssl_time"`
	ResponseCode       string `json:"response_code"`
	CollectionTime     string `json:"collection_time"`
	Availability       string `json:"availability"`
	ResponseTime       string `json:"response_time"`
	LocationID         string `json:"location_id"`
	Nameserver         string `json:"nameserver"`
	ResolvedIP         string `json:"resolved_ip"`
	Reason             string `json:"reason"`
	ContentLength      string `json:"content_length"`
	DataCollectionType string `json:"data_collection_type"`
}

type Site24x7LogReportOptions added in v0.15.0

type Site24x7LogReportOptions struct {
	Site24x7MonitorOptions
	StartDate string
	EndDate   string
}

type Site24x7LogReportReponse added in v0.15.0

type Site24x7LogReportReponse struct {
	Site24x7Reponse
	Data *Site24x7LogReportData `json:"data,omitempty"`
}

type Site24x7MonitorOptions added in v0.15.0

type Site24x7MonitorOptions struct {
	ID string
}

type Site24x7Options added in v0.15.0

type Site24x7Options struct {
	Timeout      int
	Insecure     bool
	ClientID     string
	ClientSecret string
	RefreshToken string
	AccessToken  string
}

type Site24x7PollStatusData added in v0.15.3

type Site24x7PollStatusData struct {
	Status    string `json:"status"`
	MonitorID string `json:"monitor_id"`
}

type Site24x7PollStatusReponse added in v0.15.3

type Site24x7PollStatusReponse struct {
	Site24x7Reponse
	Data *Site24x7PollStatusData `json:"data,omitempty"`
}

type Site24x7Reponse added in v0.15.0

type Site24x7Reponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type Site24x7WebsiteMonitor added in v0.15.0

type Site24x7WebsiteMonitor struct {
	DisplayName           string   `json:"display_name"`
	Type                  string   `json:"type"`
	Website               string   `json:"website"`
	CheckFrequency        string   `json:"check_frequency"`
	Timeout               int      `json:"timeout"`
	LocationProfileID     string   `json:"location_profile_id"`
	NotificationProfileID string   `json:"notification_profile_id"`
	ThresholdProfileID    string   `json:"threshold_profile_id"`
	UserGroupIDs          []string `json:"user_group_ids"`
	HttpMethod            string   `json:"http_method"`
	IPType                int      `json:"ip_type,omitempty"`
	UserAgent             string   `json:"user_agent,omitempty"`
	MonitorGroups         []string `json:"monitor_groups,omitempty"`
	UseNameServer         bool     `json:"use_name_server,omitempty"`
}

type Site24x7WebsiteMonitorData added in v0.15.2

type Site24x7WebsiteMonitorData struct {
	MonitorID         string `json:"monitor_id"`
	LocationProfileID string `json:"location_profile_id"`
	DisplayName       string `json:"display_name"`
}

type Site24x7WebsiteMonitorOptions added in v0.15.0

type Site24x7WebsiteMonitorOptions struct {
	Name                  string
	URL                   string
	Method                string
	Frequency             string
	Timeout               int
	Countries             []string
	UserAgent             string
	UseNameServer         bool
	NotificationProfileID string
	ThresholdProfileID    string
	UserGroupIDs          []string
}

type Site24x7WebsiteMonitorResponse added in v0.15.2

type Site24x7WebsiteMonitorResponse struct {
	Site24x7Reponse
	Data *Site24x7WebsiteMonitorData `json:"data,omitempty"`
}

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) CustomGetConversationHistory added in v0.17.11

func (s *Slack) CustomGetConversationHistory(slackOptions SlackOptions, getConversationHistoryParameters GetConversationHistoryParameters) ([]byte, error)

func (*Slack) CustomGetUser added in v0.8.6

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

func (*Slack) CustomSendFile added in v0.15.4

func (s *Slack) CustomSendFile(slackOptions SlackOptions, fileOptions SlackFileOptions) ([]byte, error)

func (*Slack) CustomSendMessage added in v0.15.4

func (s *Slack) CustomSendMessage(slackOptions SlackOptions, messageOptions SlackMessageOptions) ([]byte, error)

func (*Slack) CustomUpdateUsergroup added in v0.8.6

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

func (*Slack) GetConversationHistory added in v0.17.11

func (s *Slack) GetConversationHistory(options GetConversationHistoryParameters) ([]byte, error)

func (*Slack) GetUser added in v0.8.6

func (s *Slack) GetUser(options SlackUserEmail) ([]byte, error)

func (*Slack) SendFile

func (s *Slack) SendFile(fileOptions SlackFileOptions) ([]byte, error)

func (*Slack) SendMessage added in v0.2.0

func (s *Slack) SendMessage(messageOptions SlackMessageOptions) ([]byte, error)

func (*Slack) UpdateUsergroup added in v0.8.6

func (s *Slack) UpdateUsergroup(options SlackUsergroupUsers) ([]byte, error)

type SlackFileOptions added in v0.15.4

type SlackFileOptions struct {
	Channel string
	Thread  string
	Title   string
	Text    string
	Name    string
	Content string
	Type    string
}

type SlackMessage added in v0.2.0

type SlackMessage struct {
	Subtype string               `json:"subtype"`
	Text    string               `json:"text"`
	Type    string               `json:"type"`
	TS      string               `json:"ts"`
	BotID   string               `json:"bot_id,omitempty"`
	UserID  string               `json:"user_id,omitempty"`
	Blocks  []*SlackMessageBlock `json:"blocks,omitempty"`
}

type SlackMessageBlock added in v0.15.7

type SlackMessageBlock struct {
	Type    string `json:"type"`
	BlockID string `json:"block_id"`
}

type SlackMessageOptions added in v0.15.4

type SlackMessageOptions struct {
	Channel     string
	Thread      string
	Title       string
	Text        string
	Attachments string
	Blocks      string
}

type SlackMessageResponse added in v0.15.7

type SlackMessageResponse struct {
	OK      bool          `json:"ok"`
	Channel string        `json:"channel"`
	TS      string        `json:"ts"`
	Message *SlackMessage `json:"message,omitempty"`
}

type SlackOptions

type SlackOptions struct {
	Timeout  int
	Insecure bool
	Token    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 {
	Channel string
	Thread  string
	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 TestSummary added in v0.15.17

type TestSummary struct {
	TestID       int    `json:"test_id"`
	NodeName     string `json:"node_name"`
	Country      string `json:"country"`
	ResponseCode int    `json:"response_code,omitempty"`
	ResponseMs   int    `json:"response_ms,omitempty"`
	PublicLink   string `json:"public_link"`
}

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) CustomControlVMPower added in v0.15.5

func (vc *VCenter) CustomControlVMPower(options VCenterOptions, vmID string, action string) ([]byte, error)

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) CustomGetVM added in v0.15.5

func (vc *VCenter) CustomGetVM(options VCenterOptions, vmID string) ([]byte, 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) CustomGetVMsByName added in v0.15.5

func (vc *VCenter) CustomGetVMsByName(options VCenterOptions, vmNameOptions VCenterVMNameOptions) ([]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) GetVM added in v0.15.5

func (vc *VCenter) GetVM(vmID string) ([]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)

func (*VCenter) GetVMsByName added in v0.15.5

func (vc *VCenter) GetVMsByName(options VCenterVMNameOptions) ([]byte, error)

func (*VCenter) ResetVM added in v0.16.0

func (vc *VCenter) ResetVM(vmID string) ([]byte, error)

func (*VCenter) StartVM added in v0.15.5

func (vc *VCenter) StartVM(vmID string) ([]byte, error)

func (*VCenter) StopVM added in v0.15.5

func (vc *VCenter) StopVM(vmID string) ([]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
}

func InitializeVCenterSession added in v0.15.5

func InitializeVCenterSession(options VCenterOptions) (VCenterOptions, error)

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 VCenterVMNameOptions added in v0.15.5

type VCenterVMNameOptions struct {
	Names []string
}

type VCenterVMOptions added in v0.10.1

type VCenterVMOptions struct {
	Cluster string
	Host    string
}

type VMInfo added in v0.15.5

type VMInfo struct {
	MemorySizeMiB int    `json:"memory_size_MiB"`
	VM            string `json:"vm"`
	Name          string `json:"name"`
	PowerState    string `json:"power_state"`
	CPUCount      int    `json:"cpu_count"`
}

type VMsResponse added in v0.15.5

type VMsResponse struct {
	Value []VMInfo `json:"value"`
}

type VirusTotal added in v0.17.3

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

func NewVirusTotal added in v0.17.3

func NewVirusTotal(options VirusTotalOptions, logger common.Logger) *VirusTotal

func (*VirusTotal) CustomDomainReport added in v0.17.3

func (v *VirusTotal) CustomDomainReport(virusTotalOptions VirusTotalOptions, virusTotalDomainReportOptions VirusTotalDomainReportOptions) ([]byte, error)

func (*VirusTotal) DomainReport added in v0.17.3

func (v *VirusTotal) DomainReport(options VirusTotalDomainReportOptions) ([]byte, error)

type VirusTotalDomainNameData added in v0.17.3

type VirusTotalDomainNameData struct {
	ID                   string                                  `json:"id"`
	Type                 string                                  `json:"type"`
	LastAnalysisDate     int64                                   `json:"last_analysis_date"`
	LastModificationDate int64                                   `json:"last_modification_date"`
	LastAnalysisResult   map[string]VirusTotalLastAnalysisResult `json:"last_analysis_results"`
	Reputation           string                                  `json:"reputation"`
	TotalVotes           *VirusTotalTotalVotes
}

type VirusTotalDomainReportOptions added in v0.17.3

type VirusTotalDomainReportOptions struct {
	Domain string
}

type VirusTotalDomainReportResult added in v0.17.3

type VirusTotalDomainReportResult struct {
	DomainName *VirusTotalDomainNameData
}

type VirusTotalLastAnalysisResult added in v0.17.3

type VirusTotalLastAnalysisResult struct {
	Method     string `json:"method"`
	EngineName string `json:"engine_name"`
	Category   string `json:"category"`
	Result     string `json:"result"`
}

type VirusTotalOptions added in v0.17.3

type VirusTotalOptions struct {
	APIKey   string
	Timeout  int
	Insecure bool
}

type VirusTotalTotalVotes added in v0.17.3

type VirusTotalTotalVotes struct {
	Harmless  int `json:"harmless"`
	Malicious int `json:"malicious"`
}

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