Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client URL string Credentials credentials.Credentials }
Client service
func New ¶
func New(url string, creds credentials.Credentials, timeout time.Duration) Client
type Group ¶
type Group struct {
ID string `json:"id"`
}
Group represents the group that the user belongs to
type Organization ¶
type Organization struct {
ID string `json:"id"`
}
Organization represents the organization that the user belongs to
type User ¶
type User struct { ID string `json:"id"` Groups []Group `json:"groups"` Organization Organization `json:"organization"` }
User represents user data structure
Click to show internal directories.
Click to hide internal directories.