Documentation ¶
Index ¶
- type Client
- type FailedToObserveDurationError
- type Option
- type Recorder
- type RecordingClient
- func (c *RecordingClient) AssignRole(ctx context.Context, roleName string, actor perm.Actor) (time.Duration, error)
- func (c *RecordingClient) CreateRole(ctx context.Context, roleName string, permissions ...perm.Permission) (perm.Role, time.Duration, error)
- func (c *RecordingClient) DeleteRole(ctx context.Context, roleName string) (time.Duration, error)
- func (c *RecordingClient) HasPermission(ctx context.Context, actor perm.Actor, action, resource string) (bool, time.Duration, error)
- func (c *RecordingClient) UnassignRole(ctx context.Context, roleName string, actor perm.Actor) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { AssignRole(ctx context.Context, roleName string, actor perm.Actor) error CreateRole(ctx context.Context, name string, permissions ...perm.Permission) (perm.Role, error) DeleteRole(ctx context.Context, name string) error HasPermission(ctx context.Context, actor perm.Actor, action, resource string) (bool, error) UnassignRole(ctx context.Context, roleName string, actor perm.Actor) error }
type FailedToObserveDurationError ¶
type FailedToObserveDurationError struct {
Err error
}
func (FailedToObserveDurationError) Error ¶
func (e FailedToObserveDurationError) Error() string
type RecordingClient ¶
type RecordingClient struct {
// contains filtered or unexported fields
}
func (*RecordingClient) AssignRole ¶
func (*RecordingClient) CreateRole ¶
func (*RecordingClient) DeleteRole ¶
func (*RecordingClient) HasPermission ¶
Click to show internal directories.
Click to hide internal directories.