Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSecretNotFound defines secret not found error. ErrSecretNotFound = errors.New("secret not found") // ErrPolicyNotFound defines policy not found error. ErrPolicyNotFound = errors.New("policy not found") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is used to store secrets and policies.
func GetCacheInsOr ¶
GetCacheInsOr return store instance.
func (*Cache) GetPolicy ¶
func (c *Cache) GetPolicy(key string) ([]*ladon.DefaultPolicy, error)
GetPolicy return user's ladon policies for the given user.
Click to show internal directories.
Click to hide internal directories.