Documentation
¶
Index ¶
- func ClearCache() error
- func SaveCache(cache *Cache) error
- type Cache
- func (c *Cache) Validate() error
- func (c *Cache) ValidateBadgeId() error
- func (c *Cache) ValidateForBadge() error
- func (c *Cache) ValidateForIssuer() error
- func (c *Cache) ValidateForKey() error
- func (c *Cache) ValidateForMetadata() error
- func (c *Cache) ValidateIssuerId() error
- func (c *Cache) ValidateKeyId() error
- func (c *Cache) ValidateMetadataId() error
- func (c *Cache) ValidateVaultId() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
LoadCache loads the cache from a file, creating the file if it doesn't exist and returning an empty cache
func (*Cache) ValidateBadgeId ¶
func (*Cache) ValidateForBadge ¶
func (*Cache) ValidateForIssuer ¶
func (*Cache) ValidateForKey ¶
func (*Cache) ValidateForMetadata ¶
func (*Cache) ValidateIssuerId ¶
func (*Cache) ValidateKeyId ¶
func (*Cache) ValidateMetadataId ¶
func (*Cache) ValidateVaultId ¶
Click to show internal directories.
Click to hide internal directories.