Documentation
¶
Index ¶
- type Account
- type AccountResponse
- type Admin
- type AdminsResponse
- type Client
- func (c *Client) AddUserToGroup(ctx context.Context, groupId, userId string) error
- func (c *Client) GetAccount(ctx context.Context) (Account, error)
- func (c *Client) GetAdmins(ctx context.Context, offset string) ([]Admin, string, error)
- func (c *Client) GetGroupUsers(ctx context.Context, groupId string, offset string) ([]User, string, error)
- func (c *Client) GetGroups(ctx context.Context, offset string) ([]Group, string, error)
- func (c *Client) GetIntegration(ctx context.Context) (IntegrationResponse, error)
- func (c *Client) GetUser(ctx context.Context, userId string) (User, error)
- func (c *Client) GetUsers(ctx context.Context, offset string) ([]User, string, error)
- func (c *Client) RemoveUserFromGroup(ctx context.Context, groupId, userId string) error
- type ErrorResponse
- type Group
- type GroupUsersResponse
- type GroupsResponse
- type IntegrationResponse
- type ListResultMetadata
- type User
- type UserResponse
- type UsersResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountResponse ¶
type AccountResponse struct {
ErrorResponse
Stat string `json:"stat"`
Response Account `json:"response"`
}
type AdminsResponse ¶
type AdminsResponse struct {
ErrorResponse
Metadata ListResultMetadata `json:"metadata"`
Stat string `json:"stat"`
Response []Admin `json:"response"`
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddUserToGroup ¶ added in v0.0.4
AddUserToGroup adds a user to a group.
func (*Client) GetAccount ¶
GetAccount returns account info.
func (*Client) GetGroupUsers ¶
func (c *Client) GetGroupUsers(ctx context.Context, groupId string, offset string) ([]User, string, error)
GetGroupUsers returns all users in a group.
func (*Client) GetIntegration ¶
func (c *Client) GetIntegration(ctx context.Context) (IntegrationResponse, error)
GetIntegration returns an integration by integration key.
type ErrorResponse ¶
type GroupUsersResponse ¶
type GroupUsersResponse struct {
ErrorResponse
Metadata ListResultMetadata `json:"metadata"`
Stat string `json:"stat"`
Response []User `json:"response"`
}
type GroupsResponse ¶
type GroupsResponse struct {
ErrorResponse
Metadata ListResultMetadata `json:"metadata"`
Stat string `json:"stat"`
Response []Group `json:"response,omitempty"`
}
type IntegrationResponse ¶
type IntegrationResponse struct {
ErrorResponse
Stat string `json:"stat"`
Response struct {
Name string `json:"name"`
IntegrationKey string `json:"integration_key"`
} `json:"response"`
}
type ListResultMetadata ¶
type User ¶
type User struct {
Email string `json:"email"`
FirstName string `json:"firstname"`
LastName string `json:"lastname"`
RealName string `json:"realname"`
Status string `json:"status"`
UserID string `json:"user_id"`
Username string `json:"username"`
Created int64 `json:"created"`
LastLogin int64 `json:"last_login"`
Notes string `json:"notes"`
}
type UserResponse ¶
type UserResponse struct {
ErrorResponse
Stat string `json:"stat"`
Response User `json:"response"`
}
type UsersResponse ¶
type UsersResponse struct {
ErrorResponse
Metadata ListResultMetadata `json:"metadata"`
Response []User `json:"response"`
Stat string `json:"stat"`
}
Click to show internal directories.
Click to hide internal directories.