Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions pkg/services/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ import (

// Metadata contains pagination and response metadata
type Metadata struct {
Skip int `json:"skip,omitempty"`
Limit int `json:"limit,omitempty"`
Total int `json:"total,omitempty"`
NextPageSkip string `json:"nextPageSkip,omitempty"`
PreviousPageSkip string `json:"previousPageSkip,omitempty"`
CurrentPageSize int `json:"currentPageSize,omitempty"`
Skip int `json:"skip,omitempty"`
Limit int `json:"limit,omitempty"`
Total int `json:"total,omitempty"`

// NOTE (privateip) commenting these fields out as they are current not
// being used by the application and the data returned from the API is
// inconsistent
//NextPageSkip string `json:"nextPageSkip,omitempty"`
//PreviousPageSkip string `json:"previousPageSkip,omitempty"`
//CurrentPageSize int `json:"currentPageSize,omitempty"`
}

// Gbac represents Group-Based Access Control permissions
Expand Down