Documentation
¶
Index ¶
- func GateCache() *cache.Cache[console.PipelineGateFragment]
- func InitComponentShaCache(expireAfter time.Duration)
- func InitComponentShaCacheWithExpiryFunc(expiryFn func() time.Duration)
- func InitGateCache(expireAfter time.Duration, consoleClient client.Client)
- type ExportedLine
- type IdentityLine
- type SimpleCache
- func (c *SimpleCache[T]) Add(id string, resource T)
- func (c *SimpleCache[T]) Expire(id string)
- func (c *SimpleCache[T]) ExpiryWithJitter() time.Duration
- func (c *SimpleCache[T]) Export() map[string]ExportedLine[T]
- func (c *SimpleCache[T]) Get(id string) (T, bool)
- func (c *SimpleCache[T]) Import(items map[string]ExportedLine[T])
- func (c *SimpleCache[T]) Wipe()
- type UserGroupCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitComponentShaCache ¶
func InitComponentShaCacheWithExpiryFunc ¶ added in v0.6.58
Types ¶
type ExportedLine ¶ added in v0.6.59
type IdentityLine ¶ added in v0.6.59
type SimpleCache ¶
func ComponentShaCache ¶
func ComponentShaCache() *SimpleCache[string]
func NewSimpleCache ¶
func NewSimpleCache[T any](expiry time.Duration) *SimpleCache[T]
func NewSimpleCacheWithExpiryFunc ¶ added in v0.6.58
func NewSimpleCacheWithExpiryFunc[T any](expiryFn func() time.Duration) *SimpleCache[T]
func (*SimpleCache[T]) Add ¶
func (c *SimpleCache[T]) Add(id string, resource T)
func (*SimpleCache[T]) Expire ¶
func (c *SimpleCache[T]) Expire(id string)
func (*SimpleCache[T]) ExpiryWithJitter ¶ added in v0.6.54
func (c *SimpleCache[T]) ExpiryWithJitter() time.Duration
func (*SimpleCache[T]) Export ¶ added in v0.6.59
func (c *SimpleCache[T]) Export() map[string]ExportedLine[T]
func (*SimpleCache[T]) Get ¶
func (c *SimpleCache[T]) Get(id string) (T, bool)
func (*SimpleCache[T]) Import ¶ added in v0.6.59
func (c *SimpleCache[T]) Import(items map[string]ExportedLine[T])
func (*SimpleCache[T]) Wipe ¶
func (c *SimpleCache[T]) Wipe()
type UserGroupCache ¶
type UserGroupCache interface {
GetGroupID(name string) (string, error)
GetUserID(email string) (string, error)
Export() (users, groups map[string]IdentityLine)
Import(users, groups map[string]IdentityLine)
}
func NewUserGroupCache ¶
func NewUserGroupCache(consoleClient console.Client) UserGroupCache
Source Files
¶
Click to show internal directories.
Click to hide internal directories.