Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) Create(ctx context.Context, objectID string, body []byte) (api.Response, error)
- func (c *Client) DeleteAccessor(ctx context.Context, objectID string, accessorType string, accessorID string) (api.Response, error)
- func (c *Client) DeleteAllUsersAccessor(ctx context.Context, objectID string) (api.Response, error)
- func (c *Client) GetAccessor(ctx context.Context, objectID string, accessorType string, accessorID string) (api.Response, error)
- func (c *Client) GetAllAccessors(ctx context.Context, objectID string) (api.Response, error)
- func (c *Client) GetAllUsersAccessor(ctx context.Context, objectID string) (api.Response, error)
- func (c *Client) UpdateAccessor(ctx context.Context, objectID string, accessorType string, accessorID string, ...) (api.Response, error)
- func (c *Client) UpdateAllUsersAccessor(ctx context.Context, objectID string, body []byte) (api.Response, error)
- type ClientOperation
- type ErrorPermissions
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteAccessor ¶
func (*Client) DeleteAllUsersAccessor ¶
func (*Client) GetAccessor ¶
func (*Client) GetAllAccessors ¶
func (*Client) GetAllUsersAccessor ¶
func (*Client) UpdateAccessor ¶
type ClientOperation ¶
type ClientOperation string
const ( GET ClientOperation = "get" POST ClientOperation = "create" PUT ClientOperation = "update" DELETE ClientOperation = "delete" )
type ErrorPermissions ¶
type ErrorPermissions struct {
Wrapped error
Operation ClientOperation
}
func (ErrorPermissions) Error ¶
func (e ErrorPermissions) Error() string
func (ErrorPermissions) Unwrap ¶
func (e ErrorPermissions) Unwrap() error
Click to show internal directories.
Click to hide internal directories.