Documentation ¶
Index ¶
- Constants
- type AdminUser
- type AdminUserListResponse
- type ApiError
- type AuditLog
- type AuditLogListResponse
- type AuthConfiguration
- type BlocksAuthConfiguration
- type Check
- type CheckInformation
- type CheckListResponse
- type CheckTag
- type Client
- func (c *Client) GetAdminUserById(id string) (interface{}, error)
- func (c *Client) GetAdminUsers(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetAuditLogById(id string) (interface{}, error)
- func (c *Client) GetAuditLogs(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetCheckById(id string) (interface{}, error)
- func (c *Client) GetChecks(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetDeprovisionedPeople(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetDeviceById(id string) (interface{}, error)
- func (c *Client) GetDeviceGroupById(id string) (interface{}, error)
- func (c *Client) GetDeviceGroups(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetDevices(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetDevicesByDeviceGroup(id string, cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetDevicesByPerson(id string, cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetIssueById(id string) (interface{}, error)
- func (c *Client) GetIssues(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetIssuesByDevice(id string, cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetIssuesByPerson(id string, cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetPackageById(id string) (interface{}, error)
- func (c *Client) GetPackages(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetPeople(cursor string, limit int32, searches ...Search) (interface{}, error)
- func (c *Client) GetPersonById(id string) (interface{}, error)
- func (c *Client) GetPersonGroupById(id string) (interface{}, error)
- func (c *Client) GetPersonGroups(cursor string, limit int32, searches ...Search) (interface{}, error)
- type ClientOption
- type DeprovisionedPeopleListResponse
- type DeprovisionedPerson
- type Device
- type DeviceGroup
- type DeviceGroupListResponse
- type DeviceInformation
- type DeviceListResponse
- type Issue
- type IssueListResponse
- type OperatorType
- type Package
- type PackageListResponse
- type Pagination
- type PeopleListResponse
- type Person
- type PersonGroup
- type PersonGroupListResponse
- type RegisteredOwner
- type Search
- type TargetingConfiguration
Constants ¶
View Source
const ( DefaultPaging int32 = 25 MaxPaging int32 = 100 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminUserListResponse ¶
type AdminUserListResponse struct { AdminUsers []AdminUser `json:"data"` Pagination Pagination `json:"pagination"` }
type AuditLogListResponse ¶
type AuditLogListResponse struct { AuditLogs []AuditLog `json:"data"` Pagination Pagination `json:"pagination"` }
type AuthConfiguration ¶
type AuthConfiguration struct { DeviceId string `json:"id,omitempty"` AuthenticationMode string `json:"authentication_mode,omitempty"` PersonGroups []PersonGroup `json:"person_groups,omitempty"` }
type BlocksAuthConfiguration ¶ added in v0.2.0
type Check ¶ added in v0.2.0
type Check struct { Id string `json:"id"` Name string `json:"name"` CompatiblePlatforms []string `json:"compatible_platforms"` Description string `json:"description,omitempty"` Topics []string `json:"topics,omitempty"` CheckTags []CheckTag `json:"check_tags,omitempty"` BlocksAuthConfiguration BlocksAuthConfiguration `json:"blocks_auth_configuration"` TargetingConfiguration TargetingConfiguration `json:"targeting_configuration"` }
type CheckInformation ¶ added in v0.2.0
type CheckInformation struct { // Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation is an "int" Identifier int32 `json:"identifier,omitempty"` }
type CheckListResponse ¶ added in v0.2.0
type CheckListResponse struct { Checks []Check `json:"data"` Pagination Pagination `json:"pagination"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...ClientOption) *Client
func (*Client) GetAdminUserById ¶
func (*Client) GetAdminUsers ¶
func (*Client) GetAuditLogById ¶
func (*Client) GetAuditLogs ¶
func (*Client) GetCheckById ¶ added in v0.2.0
func (*Client) GetDeprovisionedPeople ¶
func (*Client) GetDeviceById ¶
func (*Client) GetDeviceGroupById ¶ added in v0.3.0
func (*Client) GetDeviceGroups ¶ added in v0.3.0
func (*Client) GetDevices ¶
func (*Client) GetDevicesByDeviceGroup ¶ added in v0.3.0
func (*Client) GetDevicesByPerson ¶ added in v0.3.0
func (*Client) GetIssueById ¶ added in v0.2.0
func (*Client) GetIssuesByDevice ¶ added in v0.2.0
func (*Client) GetIssuesByPerson ¶ added in v0.3.0
func (*Client) GetPackageById ¶ added in v0.2.0
func (*Client) GetPackages ¶ added in v0.2.0
func (*Client) GetPersonById ¶ added in v0.3.0
func (*Client) GetPersonGroupById ¶ added in v0.3.0
type ClientOption ¶
type ClientOption func(c *Client)
func WithAuth ¶
func WithAuth(apiToken string) ClientOption
type DeprovisionedPeopleListResponse ¶
type DeprovisionedPeopleListResponse struct { DeprovisionedPeople []DeprovisionedPerson `json:"data"` Pagination Pagination `json:"pagination"` }
type DeprovisionedPerson ¶
type DeprovisionedPerson struct { Id string `json:"id"` Name string `json:"name"` Email string `json:"email,omitempty"` CreatedAt time.Time `json:"registered_at,omitempty"` LastAuthenticatedAt time.Time `json:"last_authenticated_at,omitempty"` HasRegisteredDevice bool `json:"has_registered_device"` }
type Device ¶
type Device struct { Id string `json:"id"` Name string `json:"name"` RegisteredAt time.Time `json:"registered_at,omitempty"` LastAuthenticatedAt time.Time `json:"last_authenticated_at,omitempty"` RegisteredOwnerInfo RegisteredOwner `json:"registered_owner_info,omitempty"` AuthConfiguration AuthConfiguration `json:"auth_configuration,omitempty"` OperatingSystem string `json:"operating_system"` HardwareModel string `json:"hardware_model"` Serial string `json:"serial,omitempty"` HardwareUuid string `json:"hardware_uuid,omitempty"` Note string `json:"note,omitempty"` AuthState string `json:"auth_state"` WillBlockAt time.Time `json:"will_block_at,omitempty"` ProductImageUrl string `json:"product_image_url"` DeviceType string `json:"device_type"` FormFactor string `json:"form_factor"` }
type DeviceGroup ¶ added in v0.3.0
type DeviceGroupListResponse ¶ added in v0.3.0
type DeviceGroupListResponse struct { DeviceGroups []DeviceGroup `json:"data"` Pagination Pagination `json:"pagination"` }
type DeviceInformation ¶ added in v0.2.0
type DeviceInformation struct { // Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation is an "int" Identifier int32 `json:"identifier,omitempty"` }
type DeviceListResponse ¶
type DeviceListResponse struct { Devices []Device `json:"data"` Pagination Pagination `json:"pagination"` }
type Issue ¶ added in v0.2.0
type Issue struct { Id string `json:"id"` IssueKey string `json:"issue_key,omitempty"` IssueValue string `json:"issue_value,omitempty"` Title string `json:"title"` Value json.RawMessage `json:"value,omitempty"` Exempted bool `json:"exempted"` ResolvedAt time.Time `json:"resolved_at,omitempty"` DetectedAt time.Time `json:"detected_at"` BlocksDeviceAt time.Time `json:"blocks_device_at,omitempty"` DeviceInformation DeviceInformation `json:"device_information,omitempty"` CheckInformation CheckInformation `json:"check_information,omitempty"` LastRecheckedAt time.Time `json:"last_rechecked_at,omitempty"` }
type IssueListResponse ¶ added in v0.2.0
type IssueListResponse struct { Issues []Issue `json:"data"` Pagination Pagination `json:"pagination"` }
type OperatorType ¶
type OperatorType string
const ( Equals OperatorType = ":" SubstringMatch OperatorType = "~" GreaterThan OperatorType = ">" LessThan OperatorType = "<" )
type PackageListResponse ¶ added in v0.2.0
type PackageListResponse struct { Packages []Package `json:"data"` Pagination Pagination `json:"pagination"` }
type Pagination ¶
type PeopleListResponse ¶ added in v0.3.0
type PeopleListResponse struct { People []Person `json:"data"` Pagination Pagination `json:"pagination"` }
type Person ¶ added in v0.3.0
type Person struct { Id string `json:"id"` Name string `json:"name"` Email string `json:"email"` CreatedAt time.Time `json:"created_at"` LastAuthenticatedAt time.Time `json:"last_authenticated_at,omitempty"` HasRegisteredDevice bool `json:"has_registered_device"` Usernames []int `json:"usernames,omitempty"` }
type PersonGroup ¶
type PersonGroupListResponse ¶ added in v0.3.0
type PersonGroupListResponse struct { PersonGroups []PersonGroup `json:"data"` Pagination Pagination `json:"pagination"` }
type RegisteredOwner ¶
type RegisteredOwner struct { // Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation is an "int" Identifier int32 `json:"identifier,omitempty"` }
type Search ¶
type Search struct { Field string Operator OperatorType Value string }
type TargetingConfiguration ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.