cslvcstore

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store manages profile in mongodb.

func NewStore

func NewStore(mongoClient *mongodb.Client) *Store

NewStore creates Store.

func (*Store) Get

func (p *Store) Get(ctx context.Context, cslURL string) (*credentialstatus.CSLVCWrapper, error)

Get returns credentialstatus.CSLVCWrapper based on credentialstatus.CSL URL.

func (*Store) GetCSLURL

func (p *Store) GetCSLURL(issuerProfileURL, groupID string,
	listID credentialstatus.ListID) (string, error)

GetCSLURL returns the URL of credentialstatus.CSL.

func (*Store) Upsert

func (p *Store) Upsert(ctx context.Context, cslURL string, wrapper *credentialstatus.CSLVCWrapper) error

Upsert does upsert operation of cslWrapper against underlying MongoDB.

Jump to

Keyboard shortcuts

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