Versions in this module Expand all Collapse all v0 v0.0.13 Feb 15, 2021 Changes in this version + type Action struct + CheckCommand Command + CheckSource string + ExecutionEnd TimeStamp + ExecutionStart TimeStamp + ExitStatus int + Filter string + PerformanceData PerfData + PluginOutput string + TTL int + Type string + type Checkable interface + GetCheckCommand func() string + GetNotes func() string + GetNotesURL func() string + GetVars func() Vars + type Client interface + CreateHost func(Host) error + CreateHostGroup func(HostGroup) error + CreateService func(Service) error + DeleteHost func(string) error + DeleteHostGroup func(string) error + DeleteService func(string) error + GetHost func(string) (Host, error) + GetHostGroup func(string) (HostGroup, error) + GetService func(string) (Service, error) + ListDowntimes func(string) ([]Downtime, error) + ListHostGroups func(string) ([]HostGroup, error) + ListHosts func(string) ([]Host, error) + ListServices func(string) ([]Service, error) + ProcessCheckResult func(Service, Action) error + UpdateHost func(Host) error + UpdateHostGroup func(HostGroup) error + UpdateService func(Service) error + type Command []string + type Downtime struct + Active bool + Author string + Comment string + EndTime float64 + Fixed bool + Host string + Name string + Service string + StartTime float64 + Type string + Zone string + type DowntimeResults struct + Results []struct{ ... } + type Host struct + Address string + Address6 string + CheckCommand string + CheckPeriod string + DisplayName string + Groups []string + Name string + Notes string + NotesURL string + Vars Vars + Zone string + func (h Host) GetCheckCommand() string + func (h Host) GetNotes() string + func (h Host) GetNotesURL() string + func (h Host) GetVars() Vars + type HostCreate struct + Attrs Host + Templates []string + type HostGroup struct + Name string + Vars Vars + Zone string + func (hg HostGroup) GetVars() Vars + type HostGroupCreate struct + Attrs HostGroup + Templates []string + type HostGroupResults struct + Results []struct{ ... } + type HostResults struct + Results []struct{ ... } + type MockClient struct + Actions map[string][]Action + Hostgroups map[string]HostGroup + Hosts map[string]Host + Services map[string]Service + func NewMockClient() (c *MockClient) + func (s *MockClient) CreateHost(host Host) error + func (s *MockClient) CreateHostGroup(hostGroup HostGroup) error + func (s *MockClient) CreateService(service Service) error + func (s *MockClient) DeleteHost(name string) error + func (s *MockClient) DeleteHostGroup(name string) error + func (s *MockClient) DeleteService(name string) error + func (s *MockClient) GetHost(name string) (Host, error) + func (s *MockClient) GetHostGroup(name string) (HostGroup, error) + func (s *MockClient) GetService(name string) (Service, error) + func (s *MockClient) ListDowntimes(query string) ([]Downtime, error) + func (s *MockClient) ListHostGroups(query string) ([]HostGroup, error) + func (s *MockClient) ListHosts(query string) ([]Host, error) + func (s *MockClient) ListServices(query string) ([]Service, error) + func (s *MockClient) ProcessCheckResult(service Service, action Action) error + func (s *MockClient) UpdateHost(host Host) error + func (s *MockClient) UpdateHostGroup(hostGroup HostGroup) error + func (s *MockClient) UpdateService(service Service) error + type Object interface + GetVars func() Vars + type PerfData []string + type Results struct + Results []struct{ ... } + type Service struct + ActionURL string + CheckCommand string + CheckInterval float64 + CheckPeriod string + DisplayName string + EnableActiveChecks bool + HostName string + LastStateChange float64 + MaxCheckAttempts float64 + Name string + Notes string + NotesURL string + RetryInterval float64 + State float64 + Vars Vars + Zone string + func (s *Service) FullName() string + func (s Service) GetCheckCommand() string + func (s Service) GetNotes() string + func (s Service) GetNotesURL() string + func (s Service) GetVars() Vars + type ServiceCreate struct + Attrs Service + Templates []string + type ServiceResults struct + Results []struct{ ... } + type TimeStamp string + type Vars map[string]interface + type WebClient struct + Debug bool + DisableKeepAlives bool + Password string + TLSConfig *tls.Config + URL string + Username string + Zone string + func New(s WebClient) (*WebClient, error) + func (s *WebClient) CreateHost(host Host) error + func (s *WebClient) CreateHostGroup(hostGroup HostGroup) error + func (s *WebClient) CreateObject(path string, create interface{}) error + func (s *WebClient) CreateService(service Service) error + func (s *WebClient) DeleteHost(name string) (err error) + func (s *WebClient) DeleteHostGroup(name string) (err error) + func (s *WebClient) DeleteService(name string) (err error) + func (s *WebClient) GetHost(name string) (Host, error) + func (s *WebClient) GetHostGroup(name string) (HostGroup, error) + func (s *WebClient) GetService(name string) (Service, error) + func (s *WebClient) ListDowntimes(query string) (downtimes []Downtime, err error) + func (s *WebClient) ListHostGroups(query string) (hostGroups []HostGroup, err error) + func (s *WebClient) ListHosts(query string) (hosts []Host, err error) + func (s *WebClient) ListServices(query string) (services []Service, err error) + func (s *WebClient) ProcessCheckResult(service Service, action Action) error + func (s *WebClient) UpdateHost(host Host) error + func (s *WebClient) UpdateHostGroup(hostGroup HostGroup) error + func (s *WebClient) UpdateObject(path string, create interface{}) error + func (s *WebClient) UpdateService(service Service) error