Documentation
¶
Index ¶
- type AddGroups
- type AddRoles
- type Client
- func (client *Client) AddGroups(groups AddGroups) (*permify.MessageResponse, error)
- func (client *Client) AddRoles(roles AddRoles) (*permify.MessageResponse, error)
- func (client *Client) Create(createUserParams Create) (*Response, error)
- func (client *Client) Delete(userID string) (*Response, error)
- func (client *Client) Get(userID string) (*Response, error)
- func (client *Client) IsAuthorized(authorized IsAuthorized) (*IsAuthorizedResponse, error)
- func (client *Client) List(listUserParams List) (*MultipleResponseWithPagination, error)
- func (client *Client) RemoveGroups(groups RemoveGroups) (*permify.MessageResponse, error)
- func (client *Client) RemoveRoles(roles RemoveRoles) (*permify.MessageResponse, error)
- func (client *Client) Update(updateUserParams Update) (*Response, error)
- type Create
- type Delete
- type IsAuthorized
- type IsAuthorizedResponse
- type List
- type MultipleResponseWithPagination
- type RemoveGroups
- type RemoveRoles
- type Response
- type Show
- type Update
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddGroups ¶
func (AddGroups) GetQueries ¶
type AddRoles ¶
func (AddRoles) GetQueries ¶
type Client ¶
func (*Client) AddGroups ¶
func (client *Client) AddGroups(groups AddGroups) (*permify.MessageResponse, error)
func (*Client) AddRoles ¶
func (client *Client) AddRoles(roles AddRoles) (*permify.MessageResponse, error)
func (*Client) IsAuthorized ¶
func (client *Client) IsAuthorized(authorized IsAuthorized) (*IsAuthorizedResponse, error)
func (*Client) List ¶
func (client *Client) List(listUserParams List) (*MultipleResponseWithPagination, error)
func (*Client) RemoveGroups ¶
func (client *Client) RemoveGroups(groups RemoveGroups) (*permify.MessageResponse, error)
func (*Client) RemoveRoles ¶
func (client *Client) RemoveRoles(roles RemoveRoles) (*permify.MessageResponse, error)
type Create ¶
type Create struct { ID string Name string Photo string RoleNames []string GroupIDs []string Attributes map[string]interface{} }
func (Create) GetQueries ¶
type IsAuthorized ¶
type IsAuthorized struct { PolicyName string ActionAlias string UserID string CascadeCreate bool ResourceID *string ResourceType *string Environment *map[string]interface{} }
func (IsAuthorized) GetBody ¶
func (r IsAuthorized) GetBody() (body map[string]interface{})
func (IsAuthorized) GetMethod ¶
func (r IsAuthorized) GetMethod() string
func (IsAuthorized) GetPath ¶
func (r IsAuthorized) GetPath() string
func (IsAuthorized) GetQueries ¶
func (r IsAuthorized) GetQueries() map[string][]string
type IsAuthorizedResponse ¶
type IsAuthorizedResponse struct { Data struct { Allow bool `json:"allow"` Details interface{} `json:"details"` } `json:"data"` }
type List ¶
func (List) GetQueries ¶
type RemoveGroups ¶
func (RemoveGroups) GetBody ¶
func (r RemoveGroups) GetBody() (body map[string]interface{})
func (RemoveGroups) GetMethod ¶
func (r RemoveGroups) GetMethod() string
func (RemoveGroups) GetPath ¶
func (r RemoveGroups) GetPath() string
func (RemoveGroups) GetQueries ¶
func (r RemoveGroups) GetQueries() map[string][]string
type RemoveRoles ¶
func (RemoveRoles) GetBody ¶
func (r RemoveRoles) GetBody() (body map[string]interface{})
func (RemoveRoles) GetMethod ¶
func (r RemoveRoles) GetMethod() string
func (RemoveRoles) GetPath ¶
func (r RemoveRoles) GetPath() string
func (RemoveRoles) GetQueries ¶
func (r RemoveRoles) GetQueries() map[string][]string
type Update ¶
func (Update) GetQueries ¶
Click to show internal directories.
Click to hide internal directories.