cslindexstore

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 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

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

func (*Store) GetLatestListID

func (p *Store) GetLatestListID(ctx context.Context) (credentialstatus.ListID, error)

func (*Store) UpdateLatestListID

func (p *Store) UpdateLatestListID(ctx context.Context, id credentialstatus.ListID) error

func (*Store) Upsert

func (p *Store) Upsert(ctx context.Context, cslURL string, cslWrapper *credentialstatus.CSLIndexWrapper) 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