Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandKeyManager ¶
type CommandKeyManager interface { // SetCheckKey sets the value for the given key. SetCheckKey(key *base.PermissionCheckRequest, decision *base.PermissionCheckResponse) bool // GetCheckKey gets the value for the given key. GetCheckKey(key *base.PermissionCheckRequest) (*base.PermissionCheckResponse, bool) }
CommandKeyManager - Key manager interface for commands
func NewCheckCommandKeys ¶
func NewCheckCommandKeys(cache cache.Cache) CommandKeyManager
NewCheckCommandKeys new instance of CheckCommandKeys
func NewNoopCheckCommandKeys ¶
func NewNoopCheckCommandKeys() CommandKeyManager
NewNoopCheckCommandKeys new noop instance of CheckCommandKeys
type CommandKeys ¶
type CommandKeys struct {
// contains filtered or unexported fields
}
func (*CommandKeys) GetCheckKey ¶
func (c *CommandKeys) GetCheckKey(key *base.PermissionCheckRequest) (*base.PermissionCheckResponse, bool)
GetCheckKey - Gets the value for the given key.
func (*CommandKeys) SetCheckKey ¶
func (c *CommandKeys) SetCheckKey(key *base.PermissionCheckRequest, value *base.PermissionCheckResponse) bool
SetCheckKey - Sets the value for the given key.
type NoopCommandKeys ¶
type NoopCommandKeys struct{}
NoopCommandKeys -
func (*NoopCommandKeys) GetCheckKey ¶
func (c *NoopCommandKeys) GetCheckKey(*base.PermissionCheckRequest) (*base.PermissionCheckResponse, bool)
GetCheckKey gets the value for the given key.
func (*NoopCommandKeys) SetCheckKey ¶
func (c *NoopCommandKeys) SetCheckKey(*base.PermissionCheckRequest, *base.PermissionCheckResponse) bool
SetCheckKey sets the value for the given key.
Click to show internal directories.
Click to hide internal directories.