Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AgentIDHash ¶
AgentIDHash returns the sha256 hex of agentID (for anonymization).
Types ¶
type CachedKeyStore ¶
type CachedKeyStore struct {
// contains filtered or unexported fields
}
CachedKeyStore wraps a KeyStore with a TTL cache.
func NewCachedKeyStore ¶
func NewCachedKeyStore(inner KeyStore, ttl time.Duration) *CachedKeyStore
NewCachedKeyStore wraps inner with a TTL-based cache.
type FileKeyStore ¶
type FileKeyStore struct {
// contains filtered or unexported fields
}
FileKeyStore loads Ed25519 public keys from a YAML file.
func NewFileKeyStore ¶
func NewFileKeyStore(path string) (*FileKeyStore, error)
NewFileKeyStore loads keys from path. A missing file is treated as an empty store and is not an error.
Click to show internal directories.
Click to hide internal directories.