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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDoorman

type MockDoorman struct {
	InviteResponse       *common.InvitationResponse
	InviteErr            error
	AcceptInviteResponse *common.AcceptInvitationResponse
	AcceptInviteErr      error
}

func (*MockDoorman) AcceptInvitation

func (*MockDoorman) GetInvitation

type MockIssuer

type MockIssuer struct {
	IssueCredResponse *common.IssueCredentialResponse
	IssueCredErr      error
}

func (*MockIssuer) IssueCredential

type MockKMS

type MockKMS struct {
	ImportPrivateKeyKID    string
	ImportPrivateKeyHandle interface{}
	ImportPrivateKeyErr    error
}

func (*MockKMS) Create

func (r *MockKMS) Create(kt kms.KeyType) (string, interface{}, error)

func (*MockKMS) CreateAndExportPubKeyBytes

func (r *MockKMS) CreateAndExportPubKeyBytes(kt kms.KeyType) (string, []byte, error)

func (*MockKMS) ExportPubKeyBytes

func (r *MockKMS) ExportPubKeyBytes(keyID string) ([]byte, error)

func (*MockKMS) Get

func (r *MockKMS) Get(keyID string) (interface{}, error)

func (*MockKMS) ImportPrivateKey

func (r *MockKMS) ImportPrivateKey(privKey interface{}, kt kms.KeyType, opts ...kms.PrivateKeyOpts) (string, interface{}, error)

func (*MockKMS) PubKeyBytesToHandle

func (r *MockKMS) PubKeyBytesToHandle(pubKey []byte, kt kms.KeyType) (interface{}, error)

func (*MockKMS) Rotate

func (r *MockKMS) Rotate(kt kms.KeyType, keyID string) (string, interface{}, error)

type MockLoadbalancer

type MockLoadbalancer struct {
	EndpointValue string
	EndpointErr   error
}

func (*MockLoadbalancer) GetEndpoint

type MockVDRClient

type MockVDRClient struct {
	GetNymReply *vdr.ReadReply
	GetNymErr   error
}

func (*MockVDRClient) CreateNym

func (r *MockVDRClient) CreateNym(did, verkey, role, from string, signer vdr.Signer) error

func (*MockVDRClient) GetNym

func (r *MockVDRClient) GetNym(did string) (*vdr.ReadReply, error)

func (*MockVDRClient) GetPoolStatus

func (r *MockVDRClient) GetPoolStatus() (*vdr.PoolStatus, error)

func (*MockVDRClient) SetEndpoint

func (r *MockVDRClient) SetEndpoint(did, from string, ep string, signer vdr.Signer) error

type MockVerifier

type MockVerifier struct {
	RequestPresResponse *common.RequestPresentationResponse
	RequestPresErr      error
}

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the provider type

func (*Provider) GetCredentialEngineRegistry

func (_m *Provider) GetCredentialEngineRegistry() (engine.CredentialRegistry, error)

GetCredentialEngineRegistry provides a mock function with given fields:

func (*Provider) GetDoormanClient

func (_m *Provider) GetDoormanClient() (api.DoormanClient, error)

GetDoormanClient provides a mock function with given fields:

func (*Provider) GetIssuerClient

func (_m *Provider) GetIssuerClient() (protogen.IssuerClient, error)

GetIssuerClient provides a mock function with given fields:

func (*Provider) GetLoadbalancerClient

func (_m *Provider) GetLoadbalancerClient() (apiprotogen.LoadbalancerClient, error)

GetLoadbalancerClient provides a mock function with given fields:

func (*Provider) GetPresentationEngineRegistry

func (_m *Provider) GetPresentationEngineRegistry() (presentproofengine.PresentationRegistry, error)

GetPresentationEngineRegistry provides a mock function with given fields:

func (*Provider) GetVerifierClient

func (_m *Provider) GetVerifierClient() (verifierapiprotogen.VerifierClient, error)

GetVerifierClient provides a mock function with given fields:

func (*Provider) IndyVDR

func (_m *Provider) IndyVDR() (indy.VDRClient, error)

IndyVDR provides a mock function with given fields:

func (*Provider) KMS

func (_m *Provider) KMS() kms.KeyManager

KMS provides a mock function with given fields:

func (*Provider) Store

func (_m *Provider) Store() datastore.Store

Store provides a mock function with given fields:

Jump to

Keyboard shortcuts

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