Documentation ¶
Index ¶
- type AddRules
- type Client
- func (client *Client) AddRules(rules AddRules) (*permify.MessageResponse, error)
- func (client *Client) Create(createPolicyParams Create) (*Response, error)
- func (client *Client) CreateWithAssociations(createWithAssociationsPolicyParams CreateWithAssociations) (*Response, error)
- func (client *Client) Delete(policyName string) (*Response, error)
- func (client *Client) Get(policyName string) (*Response, error)
- func (client *Client) List(listPolicyParams List) (*MultipleResponseWithPagination, error)
- func (client *Client) RemoveOptions(rules RemoveRules) (*permify.MessageResponse, error)
- type Create
- type CreateWithAssociations
- type Delete
- type List
- type MultipleResponseWithPagination
- type RemoveRules
- type Response
- type Show
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddRules ¶
func (AddRules) GetQueries ¶
type Client ¶
func (*Client) AddRules ¶
func (client *Client) AddRules(rules AddRules) (*permify.MessageResponse, error)
func (*Client) CreateWithAssociations ¶
func (client *Client) CreateWithAssociations(createWithAssociationsPolicyParams CreateWithAssociations) (*Response, error)
func (*Client) List ¶
func (client *Client) List(listPolicyParams List) (*MultipleResponseWithPagination, error)
func (*Client) RemoveOptions ¶
func (client *Client) RemoveOptions(rules RemoveRules) (*permify.MessageResponse, error)
type Create ¶
type Create struct { Name string ActionAlias string AnyOf bool Description string RuleNames []string }
func (Create) GetQueries ¶
type CreateWithAssociations ¶
type CreateWithAssociations struct { Name string ActionAlias string AnyOf bool Description string Rules []struct { Name string Description string Condition string FailMessage string } }
func (CreateWithAssociations) GetBody ¶
func (r CreateWithAssociations) GetBody() (body map[string]interface{})
func (CreateWithAssociations) GetMethod ¶
func (r CreateWithAssociations) GetMethod() string
func (CreateWithAssociations) GetPath ¶
func (r CreateWithAssociations) GetPath() string
func (CreateWithAssociations) GetQueries ¶
func (r CreateWithAssociations) GetQueries() map[string][]string
type Delete ¶
func (Delete) GetQueries ¶
type List ¶
func (List) GetQueries ¶
type RemoveRules ¶
func (RemoveRules) GetBody ¶
func (r RemoveRules) GetBody() (body map[string]interface{})
func (RemoveRules) GetMethod ¶
func (r RemoveRules) GetMethod() string
func (RemoveRules) GetPath ¶
func (r RemoveRules) GetPath() string
func (RemoveRules) GetQueries ¶
func (r RemoveRules) GetQueries() map[string][]string
type Show ¶
func (Show) GetQueries ¶
Click to show internal directories.
Click to hide internal directories.