Documentation ¶
Index ¶
- type CredentialEngine
- func (r *CredentialEngine) Accept(typ string) bool
- func (r *CredentialEngine) CreateCredentialOffer(issuer *datastore.DID, subjectDID string, s *datastore.Schema, value []byte) (string, *decorator.AttachmentData, error)
- func (r *CredentialEngine) CreateSchema(issuer *datastore.DID, s *datastore.Schema) (string, error)
- func (r *CredentialEngine) GetSchemaForProposal(proposal []byte) (string, error)
- func (r *CredentialEngine) IssueCredential(issuerDID *datastore.DID, s *datastore.Schema, offerID string, ...) (*decorator.AttachmentData, error)
- func (r *CredentialEngine) RegisterSchema(registrant *datastore.DID, s *datastore.Schema) error
- type CredentialRegistry
- func (_m *CredentialRegistry) CreateCredentialOffer(issuer *datastore.DID, subjectDID string, s *datastore.Schema, value []byte) (string, *decorator.AttachmentData, error)
- func (_m *CredentialRegistry) CreateSchema(s *datastore.Schema) (string, error)
- func (_m *CredentialRegistry) GetSchemaForProposal(format string, data []byte) (string, error)
- func (_m *CredentialRegistry) IssueCredential(issuer *datastore.DID, s *datastore.Schema, offerID string, ...) (*decorator.AttachmentData, error)
- func (_m *CredentialRegistry) RegisterSchema(registrant *datastore.DID, s *datastore.Schema) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialEngine ¶
type CredentialEngine struct { Accep bool SchemaID string CreateSchemaError error IssueCredentialAttachment *decorator.AttachmentData IssueCredentialError error CredentialOfferID string CreateCredentialOfferAttachment *decorator.AttachmentData CreateCredentialOfferError error RegisterError error SchemaIDForProposal string SchemaForProposalErr error }
CredentialEngine is an autogenerated mock type for the CredentialEngine type
func (*CredentialEngine) Accept ¶
func (r *CredentialEngine) Accept(typ string) bool
Accept provides a mock function with given fields: typ
func (*CredentialEngine) CreateCredentialOffer ¶
func (r *CredentialEngine) CreateCredentialOffer(issuer *datastore.DID, subjectDID string, s *datastore.Schema, value []byte) (string, *decorator.AttachmentData, error)
CreateCredentialOffer provides a mock function with given fields: issuer, s
func (*CredentialEngine) CreateSchema ¶
CreateSchema provides a mock function with given fields: issuer, s
func (*CredentialEngine) GetSchemaForProposal ¶
func (r *CredentialEngine) GetSchemaForProposal(proposal []byte) (string, error)
func (*CredentialEngine) IssueCredential ¶
func (r *CredentialEngine) IssueCredential(issuerDID *datastore.DID, s *datastore.Schema, offerID string, requestAttachment decorator.AttachmentData, values map[string]interface{}) (*decorator.AttachmentData, error)
IssueCredential provides a mock function with given fields: issuerDID, s, offerID, requestAttachment, values
func (*CredentialEngine) RegisterSchema ¶
RegisterSchema provides a mock function with given fields: registrant, s
type CredentialRegistry ¶
CredentialRegistry is an autogenerated mock type for the CredentialRegistry type
func (*CredentialRegistry) CreateCredentialOffer ¶
func (_m *CredentialRegistry) CreateCredentialOffer(issuer *datastore.DID, subjectDID string, s *datastore.Schema, value []byte) (string, *decorator.AttachmentData, error)
CreateCredentialOffer provides a mock function with given fields: issuer, subjectDID, s, value
func (*CredentialRegistry) CreateSchema ¶
func (_m *CredentialRegistry) CreateSchema(s *datastore.Schema) (string, error)
CreateSchema provides a mock function with given fields: s
func (*CredentialRegistry) GetSchemaForProposal ¶
func (_m *CredentialRegistry) GetSchemaForProposal(format string, data []byte) (string, error)
GetSchemaForProposal provides a mock function with given fields: format, data
func (*CredentialRegistry) IssueCredential ¶
func (_m *CredentialRegistry) IssueCredential(issuer *datastore.DID, s *datastore.Schema, offerID string, requestAttachment decorator.AttachmentData, values map[string]interface{}) (*decorator.AttachmentData, error)
IssueCredential provides a mock function with given fields: issuer, s, offerID, requestAttachment, values
func (*CredentialRegistry) RegisterSchema ¶
RegisterSchema provides a mock function with given fields: registrant, s