Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitComponentShaCache ¶
Types ¶
type SimpleCache ¶
func ComponentShaCache ¶
func ComponentShaCache() *SimpleCache[string]
func NewSimpleCache ¶
func NewSimpleCache[T any](expiry 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]) Get ¶
func (c *SimpleCache[T]) Get(id string) (T, bool)
func (*SimpleCache[T]) Wipe ¶
func (c *SimpleCache[T]) Wipe()
type UserGroupCache ¶
type UserGroupCache interface {
GetGroupID(name string) (string, error)
GetUserID(email string) (string, error)
}
func NewUserGroupCache ¶
func NewUserGroupCache(consoleClient console.Client) UserGroupCache
Source Files
¶
Click to show internal directories.
Click to hide internal directories.