keys

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

GetCheckKey - Gets the value for the given key.

func (*CommandKeys) SetCheckKey

SetCheckKey - Sets the value for the given key.

type NoopCommandKeys

type NoopCommandKeys struct{}

NoopCommandKeys -

func (*NoopCommandKeys) GetCheckKey

GetCheckKey gets the value for the given key.

func (*NoopCommandKeys) SetCheckKey

SetCheckKey sets the value for the given key.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL