provider

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	ServiceValue                      interface{}
	ServiceErr                        error
	ServiceMap                        map[string]interface{}
	KMSValue                          kms.KeyManager
	ServiceEndpointValue              string
	StorageProviderValue              storage.Provider
	ProtocolStateStorageProviderValue storage.Provider
	DIDConnectionStoreValue           did.ConnectionStore
	PackerList                        []packer.Packer
	PackerValue                       packer.Packer
	OutboundDispatcherValue           dispatcher.Outbound
	VDRegistryValue                   vdrapi.Registry
	CryptoValue                       crypto.Crypto
	ContextStoreValue                 ld.ContextStore
	RemoteProviderStoreValue          ld.RemoteProviderStore
	DocumentLoaderValue               jsonld.DocumentLoader
	KeyTypeValue                      kms.KeyType
	KeyAgreementTypeValue             kms.KeyType
	MediaTypeProfilesValue            []string
	InboundMessageHandlerValue        transport.InboundMessageHandler
	PackagerValue                     transport.Packager
	MessageServiceProviderValue       api.MessageServiceProvider
	InboundMessengerValue             service.InboundMessenger
	GetDIDsBackoffDurationValue       time.Duration
	GetDIDsMaxRetriesValue            uint64
	DIDRotatorValue                   middleware.DIDCommMessageMiddleware
	MessengerValue                    service.Messenger
	SecretLockValue                   secretlock.Service
}

Provider mocks provider needed for did exchange service initialization.

func (*Provider) AllServices added in v0.1.8

func (p *Provider) AllServices() []dispatcher.ProtocolService

AllServices return all services.

func (*Provider) Crypto

func (p *Provider) Crypto() crypto.Crypto

Crypto returns a crypto.

func (*Provider) DIDConnectionStore added in v0.1.7

func (p *Provider) DIDConnectionStore() did.ConnectionStore

DIDConnectionStore returns the DID connection store.

func (*Provider) DIDRotator added in v0.1.8

func (p *Provider) DIDRotator() *middleware.DIDCommMessageMiddleware

DIDRotator returns the did rotator.

func (*Provider) GetDIDsBackOffDuration added in v0.1.8

func (p *Provider) GetDIDsBackOffDuration() time.Duration

GetDIDsBackOffDuration return backoff duration for getting DIDs.

func (*Provider) GetDIDsMaxRetries added in v0.1.8

func (p *Provider) GetDIDsMaxRetries() uint64

GetDIDsMaxRetries return max number of retries for getting DIDs.

func (*Provider) InboundMessageHandler added in v0.1.8

func (p *Provider) InboundMessageHandler() transport.InboundMessageHandler

InboundMessageHandler return inbound message handler.

func (*Provider) InboundMessenger added in v0.1.8

func (p *Provider) InboundMessenger() service.InboundMessenger

InboundMessenger return inbound messenger.

func (*Provider) JSONLDContextStore added in v0.1.7

func (p *Provider) JSONLDContextStore() ld.ContextStore

JSONLDContextStore returns JSON-LD context store.

func (*Provider) JSONLDDocumentLoader added in v0.1.7

func (p *Provider) JSONLDDocumentLoader() jsonld.DocumentLoader

JSONLDDocumentLoader returns JSON-LD document loader.

func (*Provider) JSONLDRemoteProviderStore added in v0.1.7

func (p *Provider) JSONLDRemoteProviderStore() ld.RemoteProviderStore

JSONLDRemoteProviderStore returns remote JSON-LD context provider store.

func (*Provider) KMS

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

KMS returns a kms instance.

func (*Provider) KeyAgreementType added in v0.1.7

func (p *Provider) KeyAgreementType() kms.KeyType

KeyAgreementType returns a mocked keyType value for KeyAgreement.

func (*Provider) KeyType added in v0.1.7

func (p *Provider) KeyType() kms.KeyType

KeyType returns a mocked keyType value for authentication (signing).

func (*Provider) MediaTypeProfiles added in v0.1.7

func (p *Provider) MediaTypeProfiles() []string

MediaTypeProfiles returns the media type profiles.

func (*Provider) MessageServiceProvider added in v0.1.8

func (p *Provider) MessageServiceProvider() api.MessageServiceProvider

MessageServiceProvider return message service provider.

func (*Provider) Messenger added in v0.1.8

func (p *Provider) Messenger() service.Messenger

Messenger return messenger.

func (*Provider) OutboundDispatcher

func (p *Provider) OutboundDispatcher() dispatcher.Outbound

OutboundDispatcher return outbound dispatcher.

func (*Provider) Packager added in v0.1.8

func (p *Provider) Packager() transport.Packager

Packager return packager.

func (*Provider) Packers

func (p *Provider) Packers() []packer.Packer

Packers returns the available Packer services.

func (*Provider) PrimaryPacker

func (p *Provider) PrimaryPacker() packer.Packer

PrimaryPacker returns the main Packer service.

func (*Provider) ProtocolStateStorageProvider

func (p *Provider) ProtocolStateStorageProvider() storage.Provider

ProtocolStateStorageProvider returns the protocol state storage provider.

func (*Provider) RouterEndpoint

func (p *Provider) RouterEndpoint() string

RouterEndpoint returns the router transport endpoint.

func (*Provider) SecretLock added in v0.1.8

func (p *Provider) SecretLock() secretlock.Service

SecretLock returns secret lock.

func (*Provider) Service

func (p *Provider) Service(id string) (interface{}, error)

Service return service.

func (*Provider) ServiceEndpoint

func (p *Provider) ServiceEndpoint() string

ServiceEndpoint returns the service endpoint.

func (*Provider) StorageProvider

func (p *Provider) StorageProvider() storage.Provider

StorageProvider returns the storage provider.

func (*Provider) VDRegistry added in v0.1.5

func (p *Provider) VDRegistry() vdrapi.Registry

VDRegistry return vdr registry.

Jump to

Keyboard shortcuts

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