profile

package
v0.0.0-...-7b7c10a Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func (c *Profile) DeleteHolderProfile(name string) error

DeleteHolderProfile deletes the holder profile from the underlying store.

func (*Profile) DeleteProfile

func (c *Profile) DeleteProfile(name string) error

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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