mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (r *CredentialEngine) CreateSchema(issuer *datastore.DID, s *datastore.Schema) (string, error)

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

func (r *CredentialEngine) RegisterSchema(registrant *datastore.DID, s *datastore.Schema) error

RegisterSchema provides a mock function with given fields: registrant, s

type CredentialRegistry

type CredentialRegistry struct {
	mock.Mock
}

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

func (_m *CredentialRegistry) RegisterSchema(registrant *datastore.DID, s *datastore.Schema) error

RegisterSchema provides a mock function with given fields: registrant, s

Jump to

Keyboard shortcuts

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