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 Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func (*Provider) Close

func (_m *Provider) Close() error

Close provides a mock function with given fields:

func (*Provider) Open

func (_m *Provider) Open() (datastore.Store, error)

Open provides a mock function with given fields:

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func (*Store) AddWebhook

func (_m *Store) AddWebhook(hook *datastore.Webhook) error

AddWebhook provides a mock function with given fields: hook

func (*Store) DeleteAgent

func (_m *Store) DeleteAgent(name string) error

DeleteAgent provides a mock function with given fields: name

func (*Store) DeleteAgentConnection

func (_m *Store) DeleteAgentConnection(a *datastore.Agent, externalID string) error

DeleteAgentConnection provides a mock function with given fields: a, externalID

func (*Store) DeleteCredentialByOffer

func (_m *Store) DeleteCredentialByOffer(offerID string) error

DeleteCredentialByOffer provides a mock function with given fields: offerID

func (*Store) DeleteSchema

func (_m *Store) DeleteSchema(name string) error

DeleteSchema provides a mock function with given fields: name

func (*Store) DeleteWebhook

func (_m *Store) DeleteWebhook(typ string) error

DeleteWebhook provides a mock function with given fields: typ

func (*Store) FindCredentialByProtocolID

func (_m *Store) FindCredentialByProtocolID(offerID string) (*datastore.IssuedCredential, error)

FindCredentialByProtocolID provides a mock function with given fields: offerID

func (*Store) GetAgent

func (_m *Store) GetAgent(id string) (*datastore.Agent, error)

GetAgent provides a mock function with given fields: id

func (*Store) GetAgentByPublicDID

func (_m *Store) GetAgentByPublicDID(DID string) (*datastore.Agent, error)

GetAgentByPublicDID provides a mock function with given fields: DID

func (*Store) GetAgentConnection

func (_m *Store) GetAgentConnection(a *datastore.Agent, externalID string) (*datastore.AgentConnection, error)

GetAgentConnection provides a mock function with given fields: a, externalID

func (*Store) GetAgentConnectionForDID

func (_m *Store) GetAgentConnectionForDID(a *datastore.Agent, theirDID string) (*datastore.AgentConnection, error)

GetAgentConnectionForDID provides a mock function with given fields: a, theirDID

func (*Store) GetDID

func (_m *Store) GetDID(id string) (*datastore.DID, error)

GetDID provides a mock function with given fields: id

func (*Store) GetPresentationRequest

func (_m *Store) GetPresentationRequest(ID string) (*datastore.PresentationRequest, error)

GetPresentationRequest provides a mock function with given fields: ID

func (*Store) GetPublicDID

func (_m *Store) GetPublicDID() (*datastore.DID, error)

GetPublicDID provides a mock function with given fields:

func (*Store) GetSchema

func (_m *Store) GetSchema(name string) (*datastore.Schema, error)

GetSchema provides a mock function with given fields: name

func (*Store) GetSchemaByExternalID

func (_m *Store) GetSchemaByExternalID(externalID string) (*datastore.Schema, error)

GetSchemaByExternalID provides a mock function with given fields: externalID

func (*Store) InsertAgent

func (_m *Store) InsertAgent(a *datastore.Agent) (string, error)

InsertAgent provides a mock function with given fields: a

func (*Store) InsertAgentConnection

func (_m *Store) InsertAgentConnection(a *datastore.Agent, externalID string, conn *didexchange.Connection) error

InsertAgentConnection provides a mock function with given fields: a, externalID, conn

func (*Store) InsertCredential

func (_m *Store) InsertCredential(c *datastore.IssuedCredential) (string, error)

InsertCredential provides a mock function with given fields: c

func (*Store) InsertDID

func (_m *Store) InsertDID(d *datastore.DID) error

InsertDID provides a mock function with given fields: d

func (*Store) InsertPresentation

func (_m *Store) InsertPresentation(p *datastore.Presentation) (string, error)

InsertPresentation provides a mock function with given fields: p

func (*Store) InsertPresentationRequest

func (_m *Store) InsertPresentationRequest(pr *datastore.PresentationRequest) (string, error)

InsertPresentationRequest provides a mock function with given fields: pr

func (*Store) InsertSchema

func (_m *Store) InsertSchema(s *datastore.Schema) (string, error)

InsertSchema provides a mock function with given fields: s

func (*Store) ListAgent

func (_m *Store) ListAgent(c *datastore.AgentCriteria) (*datastore.AgentList, error)

ListAgent provides a mock function with given fields: c

func (*Store) ListAgentConnections

func (_m *Store) ListAgentConnections(a *datastore.Agent) ([]*datastore.AgentConnection, error)

ListAgentConnections provides a mock function with given fields: a

func (*Store) ListDIDs

func (_m *Store) ListDIDs(c *datastore.DIDCriteria) (*datastore.DIDList, error)

ListDIDs provides a mock function with given fields: c

func (*Store) ListSchema

func (_m *Store) ListSchema(c *datastore.SchemaCriteria) (*datastore.SchemaList, error)

ListSchema provides a mock function with given fields: c

func (*Store) ListWebhooks

func (_m *Store) ListWebhooks(typ string) ([]*datastore.Webhook, error)

ListWebhooks provides a mock function with given fields: typ

func (*Store) SetPublicDID

func (_m *Store) SetPublicDID(DID *datastore.DID) error

SetPublicDID provides a mock function with given fields: DID

func (*Store) UpdateAgent

func (_m *Store) UpdateAgent(a *datastore.Agent) error

UpdateAgent provides a mock function with given fields: a

func (*Store) UpdateCredential

func (_m *Store) UpdateCredential(c *datastore.IssuedCredential) error

UpdateCredential provides a mock function with given fields: c

func (*Store) UpdateSchema

func (_m *Store) UpdateSchema(s *datastore.Schema) error

UpdateSchema provides a mock function with given fields: s

Jump to

Keyboard shortcuts

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