Documentation
¶
Index ¶
- func NewFakeVCRepository() vccore.Repository
- type FakeVCRepository
- func (r *FakeVCRepository) Create(ctx context.Context, credential *vctypes.VerifiableCredential, ...) (*vctypes.VerifiableCredential, error)
- func (r *FakeVCRepository) GetByID(ctx context.Context, id string) (*vctypes.VerifiableCredential, error)
- func (r *FakeVCRepository) GetByResolverMetadata(ctx context.Context, resolverMetadataID string) ([]*vctypes.VerifiableCredential, error)
- func (r *FakeVCRepository) GetWellKnown(ctx context.Context, resolverMetadataID string) (*[]*vctypes.EnvelopedCredential, error)
- func (r *FakeVCRepository) Update(ctx context.Context, credential *vctypes.VerifiableCredential, ...) (*vctypes.VerifiableCredential, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeVCRepository ¶
func NewFakeVCRepository() vccore.Repository
Types ¶
type FakeVCRepository ¶
type FakeVCRepository struct {
// contains filtered or unexported fields
}
func (*FakeVCRepository) Create ¶
func (r *FakeVCRepository) Create( ctx context.Context, credential *vctypes.VerifiableCredential, resolverMetadataID string, ) (*vctypes.VerifiableCredential, error)
func (*FakeVCRepository) GetByID ¶ added in v0.0.6
func (r *FakeVCRepository) GetByID( ctx context.Context, id string, ) (*vctypes.VerifiableCredential, error)
func (*FakeVCRepository) GetByResolverMetadata ¶
func (r *FakeVCRepository) GetByResolverMetadata( ctx context.Context, resolverMetadataID string, ) ([]*vctypes.VerifiableCredential, error)
func (*FakeVCRepository) GetWellKnown ¶
func (r *FakeVCRepository) GetWellKnown( ctx context.Context, resolverMetadataID string, ) (*[]*vctypes.EnvelopedCredential, error)
func (*FakeVCRepository) Update ¶ added in v0.0.6
func (r *FakeVCRepository) Update( ctx context.Context, credential *vctypes.VerifiableCredential, resolverMetadataID string, ) (*vctypes.VerifiableCredential, error)
Click to show internal directories.
Click to hide internal directories.