Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultTimeout = time.Second DefaultCleanupTimeout = time.Second * 10 DefaultMaxLatency = time.Millisecond * 100 )
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) (time.Duration, error) CreateRole(ctx context.Context, name string, permissions ...perm.Permission) (perm.Role, time.Duration, error) DeleteRole(ctx context.Context, name string) (time.Duration, error) HasPermission(ctx context.Context, actor perm.Actor, action, resource string) (bool, time.Duration, error) UnassignRole(ctx context.Context, roleName string, actor perm.Actor) (time.Duration, error) }
type Option ¶
type Option func(*options)
func WithCleanupTimeout ¶
func WithMaxLatency ¶
func WithTimeout ¶
Directories ¶
Path | Synopsis |
---|---|
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
recordingfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Click to show internal directories.
Click to hide internal directories.