Documentation ¶
Index ¶
- type Client
- func (r *Client) AssertOutputsEmpty()
- func (r *Client) EnsureAuthorizedService(ctx context.Context) error
- func (r *Client) EnsureAuthorizedUser(ctx context.Context, targetUserID string, permission string) (string, error)
- func (r *Client) GetUserPermissions(ctx context.Context, requestUserID string, targetUserID string) (user.Permissions, error)
- type EnsureAuthorizedUserInput
- type EnsureAuthorizedUserOutput
- type GetUserPermissionsInput
- type GetUserPermissionsOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { EnsureAuthorizedServiceInvocations int EnsureAuthorizedServiceInputs []context.Context EnsureAuthorizedServiceStub func(ctx context.Context) error EnsureAuthorizedServiceOutputs []error EnsureAuthorizedServiceOutput *error EnsureAuthorizedUserInvocations int EnsureAuthorizedUserInputs []EnsureAuthorizedUserInput EnsureAuthorizedUserStub func(ctx context.Context, targetUserID string, permission string) (string, error) EnsureAuthorizedUserOutputs []EnsureAuthorizedUserOutput EnsureAuthorizedUserOutput *EnsureAuthorizedUserOutput GetUserPermissionsInvocations int GetUserPermissionsInputs []GetUserPermissionsInput GetUserPermissionsStub func(ctx context.Context, requestUserID string, targetUserID string) (user.Permissions, error) GetUserPermissionsOutputs []GetUserPermissionsOutput GetUserPermissionsOutput *GetUserPermissionsOutput }
func (*Client) AssertOutputsEmpty ¶ added in v1.27.0
func (r *Client) AssertOutputsEmpty()
func (*Client) EnsureAuthorizedService ¶ added in v1.27.0
func (*Client) EnsureAuthorizedUser ¶ added in v1.27.0
func (*Client) GetUserPermissions ¶
type EnsureAuthorizedUserInput ¶ added in v1.27.0
type EnsureAuthorizedUserOutput ¶ added in v1.27.0
type GetUserPermissionsInput ¶
type GetUserPermissionsOutput ¶
type GetUserPermissionsOutput struct { Permissions user.Permissions Error error }
Click to show internal directories.
Click to hide internal directories.