Documentation ¶
Index ¶
- type Client
- func (bx *Client) CreateRole(role Role) (int64, error)
- func (bx *Client) CreateUser(user User) (int64, error)
- func (bx *Client) DeleteRole(roleID int64) error
- func (bx *Client) DeleteUser(userID int64) error
- func (bx *Client) GetRole(roleID int64) (Role, error)
- func (bx *Client) GetRoles() ([]Role, error)
- func (bx *Client) GetUser(userID int64) (User, error)
- func (bx *Client) Login() error
- func (bx *Client) UpdateRole(role Role) error
- func (bx *Client) UpdateUser(user User) error
- type Permission
- type Role
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { APIURL string // contains filtered or unexported fields }
func (*Client) DeleteRole ¶
func (*Client) DeleteUser ¶
func (*Client) UpdateRole ¶
func (*Client) UpdateUser ¶
type Permission ¶
type User ¶
type User struct { ID int64 `json:"id"` SuperUser bool `json:"super_user"` Email string `json:"email"` FirstName string `json:"first_name"` LastName string `json:"last_name"` RoleID int64 `json:"role_id"` AccountID int64 `json:"account_id"` Active bool `json:"active"` AllAccountAccess bool `json:"all_account_access"` AccountGroupIDs []int64 `json:"account_group_ids"` }
Click to show internal directories.
Click to hide internal directories.