Documentation ¶
Index ¶
- type Client
- func (c *Client) Create(ctx context.Context, request *permissions.CreatePolicyRequest, ...) (*polytomicgo.PolicyResponseEnvelope, error)
- func (c *Client) Get(ctx context.Context, id string, opts ...option.RequestOption) (*polytomicgo.PolicyResponseEnvelope, error)
- func (c *Client) List(ctx context.Context, opts ...option.RequestOption) (*polytomicgo.ListPoliciesResponseEnvelope, error)
- func (c *Client) Remove(ctx context.Context, id string, opts ...option.RequestOption) error
- func (c *Client) Update(ctx context.Context, id string, request *permissions.UpdatePolicyRequest, ...) (*polytomicgo.PolicyResponseEnvelope, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...option.RequestOption) *Client
func (*Client) Create ¶
func (c *Client) Create( ctx context.Context, request *permissions.CreatePolicyRequest, opts ...option.RequestOption, ) (*polytomicgo.PolicyResponseEnvelope, error)
func (*Client) Get ¶
func (c *Client) Get( ctx context.Context, id string, opts ...option.RequestOption, ) (*polytomicgo.PolicyResponseEnvelope, error)
func (*Client) List ¶
func (c *Client) List( ctx context.Context, opts ...option.RequestOption, ) (*polytomicgo.ListPoliciesResponseEnvelope, error)
func (*Client) Update ¶
func (c *Client) Update( ctx context.Context, id string, request *permissions.UpdatePolicyRequest, opts ...option.RequestOption, ) (*polytomicgo.PolicyResponseEnvelope, error)
Click to show internal directories.
Click to hide internal directories.