vcrepo

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

Repo manages storing and retrieving VCs.

func New

func New(chConn clickhouse.Conn, objGetter indexrepo.ObjectGetter, vcBucketName, vinVCDataVersion, pomVCDataversion string) *Repo

New creates a new instance of VCRepo.

func (*Repo) GetLatestVINVC

func (r *Repo) GetLatestVINVC(ctx context.Context, vehicleDID cloudevent.NFTDID) (*verifiable.Credential, error)

GetLatestVINVC fetches the latest vinvc from S3.

func (*Repo) StorePOMVC added in v0.0.6

func (r *Repo) StorePOMVC(ctx context.Context, vehicleDID, producerDID cloudevent.NFTDID, rawVC json.RawMessage) error

StorePOMVC stores a new VC in S3.

func (*Repo) StoreVINVC

func (r *Repo) StoreVINVC(ctx context.Context, vehicleDID, producerDID cloudevent.NFTDID, rawVC json.RawMessage) error

StoreVINVC stores a new VC in S3.

Jump to

Keyboard shortcuts

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