Documentation
¶
Index ¶
- Constants
- func ApplyIdentityRecords(c cache.UserGroupCache, users, groups map[string]IdentityRecord)
- func ApplyPollyRecords[T any](c *pollycache.Cache[T], records map[string]PollyRecord[T])
- func ApplySHARecords(c *cache.SimpleCache[string], records map[string]SHARecord)
- func IdentityRecordsFrom(c cache.UserGroupCache) (users, groups map[string]IdentityRecord)
- func PollyRecordsFrom[T any](c *pollycache.Cache[T]) map[string]PollyRecord[T]
- func SHARecordsFrom(c *cache.SimpleCache[string]) map[string]SHARecord
- type IdentityRecord
- type ManifestRecord
- type PollyRecord
- type SHARecord
- type Snapshot
- type Store
Constants ¶
View Source
const ( SnapshotVersion = 1 ManifestsDir = "manifests" )
Variables ¶
This section is empty.
Functions ¶
func ApplyIdentityRecords ¶
func ApplyIdentityRecords(c cache.UserGroupCache, users, groups map[string]IdentityRecord)
func ApplyPollyRecords ¶
func ApplyPollyRecords[T any](c *pollycache.Cache[T], records map[string]PollyRecord[T])
func ApplySHARecords ¶
func ApplySHARecords(c *cache.SimpleCache[string], records map[string]SHARecord)
func IdentityRecordsFrom ¶
func IdentityRecordsFrom(c cache.UserGroupCache) (users, groups map[string]IdentityRecord)
func PollyRecordsFrom ¶
func PollyRecordsFrom[T any](c *pollycache.Cache[T]) map[string]PollyRecord[T]
func SHARecordsFrom ¶
func SHARecordsFrom(c *cache.SimpleCache[string]) map[string]SHARecord
Types ¶
type IdentityRecord ¶
type ManifestRecord ¶
type PollyRecord ¶
type Snapshot ¶
type Snapshot struct {
Version int `json:"version"`
WrittenAt time.Time `json:"writtenAt"`
Manifests map[string]ManifestRecord `json:"manifests"`
ComponentSHAs map[string]SHARecord `json:"componentShas"`
StatusSHAs map[string]SHARecord `json:"statusShas"`
UserIDs map[string]IdentityRecord `json:"userIds"`
GroupIDs map[string]IdentityRecord `json:"groupIds"`
ManagedNamespaces map[string]PollyRecord[console.ManagedNamespaceFragment] `json:"managedNamespaces"`
}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) StartPeriodic ¶
func (*Store) WaitPeriodic ¶
func (s *Store) WaitPeriodic()
Click to show internal directories.
Click to hide internal directories.