Help us shape the future of Go! Take the 2026 Go Developer Survey

authorizedentries

package
v1.14.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache(clk clock.Clock) *Cache

func (*Cache) GetAuthorizedEntries

func (c *Cache) GetAuthorizedEntries(agentID spiffeid.ID) []api.ReadOnlyEntry

func (*Cache) LookupAuthorizedEntries added in v1.12.0

func (c *Cache) LookupAuthorizedEntries(agentID spiffeid.ID, requestedEntries map[string]struct{}) map[string]api.ReadOnlyEntry

func (*Cache) PruneExpiredAgents

func (c *Cache) PruneExpiredAgents() int

func (*Cache) RemoveAgent

func (c *Cache) RemoveAgent(agentID string)

func (*Cache) RemoveEntry

func (c *Cache) RemoveEntry(entryID string)

func (*Cache) Stats added in v1.10.2

func (c *Cache) Stats() CacheStats

func (*Cache) UpdateAgent

func (c *Cache) UpdateAgent(agentID string, expiresAt time.Time, selectors []*types.Selector)

func (*Cache) UpdateEntry

func (c *Cache) UpdateEntry(entry *types.Entry)

type CacheStats added in v1.11.0

type CacheStats struct {
	AgentsByID        int
	AgentsByExpiresAt int
	AliasesByEntryID  int
	AliasesBySelector int
	EntriesByEntryID  int
	EntriesByParentID int
}

type Selector

type Selector struct {
	Type  string
	Value string
}

func (Selector) String

func (s Selector) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL