Documentation ¶
Index ¶
- Variables
- type Config
- func (tc *Config) AddTrust(credentialType ssi.URI, issuer ssi.URI) error
- func (tc *Config) IsTrusted(credentialType ssi.URI, issuer ssi.URI) bool
- func (tc *Config) List(credentialType ssi.URI) []ssi.URI
- func (tc *Config) Load() error
- func (tc *Config) RemoveTrust(credentialType ssi.URI, issuer ssi.URI) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoFilename = errors.New("no filename specified")
ErrNoFilename is returned when trust actions are performed but no file for storing those is specified.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config holds the trusted issuers per credential type
func (*Config) AddTrust ¶
AddTrust adds trust in a specific Issuer for a credential type. It returns an error if the Save fails
func (*Config) IsTrusted ¶
IsTrusted returns true when the given issuer is in the trusted issuers list of the given credentialType
Click to show internal directories.
Click to hide internal directories.