Skip to content

Commit

Permalink
fix: reflect bugfixes in Kolide API
Browse files Browse the repository at this point in the history
Signed-off-by: James Ramirez <[email protected]>
  • Loading branch information
ramirezj committed Jun 26, 2024
1 parent fdf7538 commit c7622b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions kolide/client/devices.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ type Device struct {
}

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"`
Identifier string `json:"identifier,omitempty"`
}

type AuthConfiguration struct {
Expand Down
6 changes: 2 additions & 4 deletions kolide/client/issues.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ type Issue struct {
}

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"`
Identifier string `json:"identifier,omitempty"`
}

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"`
Identifier string `json:"identifier,omitempty"`
}

func (c *Client) GetIssues(cursor string, limit int32, searches ...Search) (interface{}, error) {
Expand Down
3 changes: 1 addition & 2 deletions kolide/client/registration_requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ type RegistrationRequest struct {
}

type RequesterInformation struct {
// Whilst the Kolide API readme entry references this as a "string", the returned value encountered during implementation MAY BE an "int"
Identifier int32 `json:"identifier,omitempty"`
Identifier string `json:"identifier,omitempty"`
}

func (c *Client) GetRegistrationRequests(cursor string, limit int32, searches ...Search) (interface{}, error) {
Expand Down

0 comments on commit c7622b4

Please sign in to comment.