Versions in this module Expand all Collapse all v0 v0.2.0 Sep 1, 2021 Changes in this version + const PesterRetries + func MakeRestClient() *pester.Client + type Client interface + AddSystemToGroup func(sID, gID string) error + CreateGroup func(g Group) (Group, error) + CreateSearch func(s Search) (Search, error) + DeleteGroup func(id string) error + DeleteSearch func(id string) error + GetGroup func(id string) (Group, error) + GetSearch func(id string) (Search, error) + GetSystem func(id string) (*OutputSystem, error) + ListGroups func() ([]Group, error) + ListLogDestinations func() ([]LogDestination, error) + ListSearch func() ([]Search, error) + ListSystems func() ([]OutputSystem, error) + ListUsers func() ([]User, error) + RegisterSystem func(s InputSystem) (OutputSystem, error) + RemoveSystemFromGroup func(sID, gID string) error + UnregisterSystem func(id string) error + UpdateGroup func(g Group) error + UpdateSearch func(s Search) error + UpdateSystem func(s InputSystem) error + func NewClient(token string) Client + type DefaultClient struct + func (c *DefaultClient) AddSystemToGroup(sID, gID string) error + func (c *DefaultClient) CreateGroup(g Group) (Group, error) + func (c *DefaultClient) CreateSearch(s Search) (Search, error) + func (c *DefaultClient) DeleteGroup(id string) error + func (c *DefaultClient) DeleteSearch(id string) error + func (c *DefaultClient) GetGroup(id string) (Group, error) + func (c *DefaultClient) GetSearch(id string) (Search, error) + func (c *DefaultClient) GetSystem(id string) (*OutputSystem, error) + func (c *DefaultClient) ListGroups() ([]Group, error) + func (c *DefaultClient) ListLogDestinations() ([]LogDestination, error) + func (c *DefaultClient) ListSearch() ([]Search, error) + func (c *DefaultClient) ListSystems() ([]OutputSystem, error) + func (c *DefaultClient) ListUsers() ([]User, error) + func (c *DefaultClient) RegisterSystem(s InputSystem) (OutputSystem, error) + func (c *DefaultClient) RemoveSystemFromGroup(sID, gID string) error + func (c *DefaultClient) UnregisterSystem(id string) error + func (c *DefaultClient) UpdateGroup(g Group) error + func (c *DefaultClient) UpdateSearch(s Search) error + func (c *DefaultClient) UpdateSystem(s InputSystem) error + type Group struct + ID int + Name string + SystemWildcard string + Systems []OutputSystem + type InputSystem struct + Description string + DestinationID int + DestinationPort int + Hostname string + ID int + IpAddress string + Name string + type LogDestination struct + ID int + Syslog SysLog + type OutputSystem struct + Hostname string + ID int + IpAddress net.IP + LastEventAt string + Name string + Syslog SysLog + type Search struct + Group Group + ID int + Name string + Query string + type SysLog struct + Description string + Hostname string + Port int + type User struct + Email string + ID int