cache

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCache

func ClearCache() error

ClearCache clears the cache file

func SaveCache

func SaveCache(cache *Cache) error

SaveCache saves the cache to a file

Types

type Cache

type Cache struct {
	VaultId    string `json:"vaultId,omitempty"`
	KeyID      string `json:"kid,omitempty"`
	IssuerId   string `json:"issuerId,omitempty"`
	MetadataId string `json:"metadata,omitempty"`
	BadgeId    string `json:"badgeId,omitempty"`
}

func LoadCache

func LoadCache() (*Cache, error)

LoadCache loads the cache from a file, creating the file if it doesn't exist and returning an empty cache

func (*Cache) Validate

func (c *Cache) Validate() error

func (*Cache) ValidateBadgeId

func (c *Cache) ValidateBadgeId() error

func (*Cache) ValidateForBadge

func (c *Cache) ValidateForBadge() error

func (*Cache) ValidateForIssuer

func (c *Cache) ValidateForIssuer() error

func (*Cache) ValidateForKey

func (c *Cache) ValidateForKey() error

func (*Cache) ValidateForMetadata

func (c *Cache) ValidateForMetadata() error

func (*Cache) ValidateIssuerId

func (c *Cache) ValidateIssuerId() error

func (*Cache) ValidateKeyId

func (c *Cache) ValidateKeyId() error

func (*Cache) ValidateMetadataId

func (c *Cache) ValidateMetadataId() error

func (*Cache) ValidateVaultId

func (c *Cache) ValidateVaultId() error

Jump to

Keyboard shortcuts

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