Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSecretNotFound = errors.New("Cache Secret Is not Fount") ErrPolicyNotFound = errors.New("Cache Policies Is not Fount") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func GetCacheInsOr ¶
外部得到 通过 grpc 得到 apiserver的store
func (*Cache) GetPolicy ¶
func (c *Cache) GetPolicy(key string) ([]*ladon.DefaultPolicy, error)
从cache中得到key对应的策略
Click to show internal directories.
Click to hide internal directories.