Documentation ¶
Index ¶
- type DataProfile
- type GovernanceProfile
- type HolderProfile
- type IssuerProfile
- type Profile
- func (c *Profile) DeleteHolderProfile(name string) error
- func (c *Profile) DeleteProfile(name string) error
- func (c *Profile) GetGovernanceProfile(name string) (*GovernanceProfile, error)
- func (c *Profile) GetHolderProfile(name string) (*HolderProfile, error)
- func (c *Profile) GetProfile(name string) (*IssuerProfile, error)
- func (c *Profile) SaveGovernanceProfile(data *GovernanceProfile) error
- func (c *Profile) SaveHolderProfile(data *HolderProfile) error
- func (c *Profile) SaveProfile(data *IssuerProfile) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataProfile ¶
type DataProfile struct { Name string `json:"name"` DID string `json:"did"` SignatureType string `json:"signatureType"` SignatureRepresentation verifiable.SignatureRepresentation `json:"signatureRepresentation"` Creator string `json:"creator"` Created *time.Time `json:"created"` }
DataProfile base profile.
type GovernanceProfile ¶
type GovernanceProfile struct {
*DataProfile
}
GovernanceProfile struct for governance profile.
type HolderProfile ¶
type HolderProfile struct { OverwriteHolder bool `json:"overwriteHolder,omitempty"` *DataProfile }
HolderProfile struct for holder profile.
type IssuerProfile ¶
type IssuerProfile struct { URI string `json:"uri"` EDVVaultID string `json:"edvVaultID"` DisableVCStatus bool `json:"disableVCStatus"` OverwriteIssuer bool `json:"overwriteIssuer"` EDVCapability json.RawMessage `json:"edvCapability,omitempty"` EDVController string `json:"edvController"` *DataProfile }
IssuerProfile struct for issuer profile.
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
Profile takes care of features to be persisted for credentials.
func New ¶
func New(provider ariesstorage.Provider) (*Profile, error)
New returns new credential recorder instance.
func (*Profile) DeleteHolderProfile ¶
DeleteHolderProfile deletes the holder profile from the underlying store.
func (*Profile) DeleteProfile ¶
DeleteProfile deletes the profile from the underlying store.
func (*Profile) GetGovernanceProfile ¶
func (c *Profile) GetGovernanceProfile(name string) (*GovernanceProfile, error)
GetGovernanceProfile retrieves the governance profile based on name.
func (*Profile) GetHolderProfile ¶
func (c *Profile) GetHolderProfile(name string) (*HolderProfile, error)
GetHolderProfile retrieves the holder profile based on name.
func (*Profile) GetProfile ¶
func (c *Profile) GetProfile(name string) (*IssuerProfile, error)
GetProfile returns profile information for given profile name from underlying store.
func (*Profile) SaveGovernanceProfile ¶
func (c *Profile) SaveGovernanceProfile(data *GovernanceProfile) error
SaveGovernanceProfile saves governance profile to the underlying store.
func (*Profile) SaveHolderProfile ¶
func (c *Profile) SaveHolderProfile(data *HolderProfile) error
SaveHolderProfile saves holder profile to the underlying store.
func (*Profile) SaveProfile ¶
func (c *Profile) SaveProfile(data *IssuerProfile) error
SaveProfile saves issuer profile to underlying store.