cslvcstore

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 12 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(
	s3Uploader s3Uploader,
	bucket, region, hostName string) *Store

NewStore creates S3 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(_, groupID string, listID credentialstatus.ListID) (string, error)

GetCSLURL returns the public URL of credentialstatus.CSL.

func (*Store) Upsert

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

Upsert does upsert operation of credentialstatus.CSLVCWrapper.

Jump to

Keyboard shortcuts

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