trustlistmirror

package
v0.0.0-...-927d25d Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package trustlistmirror queries https://github.com/section42/hcert-trustlist-mirror for trustlists of various EU member states.

Index

Constants

This section is empty.

Variables

View Source
var (
	// TrustlistDE refers to the mirrored version of the German Trustlist.
	TrustlistDE = &List{
		URL:    "https://raw.githubusercontent.com/section42/hcert-trustlist-mirror/main/trustlist_de.min.json",
		decode: decodeDE,
	}

	// TrustlistAT refers to the mirrored version of the Austrian Trustlist.
	TrustlistAT = &List{
		URL:    "https://raw.githubusercontent.com/section42/hcert-trustlist-mirror/main/trustlist_at.min.json",
		decode: decodeDE,
	}

	// TrustlistFR refers to the mirrored version of the French Trustlist.
	TrustlistFR = &List{
		URL:    "https://raw.githubusercontent.com/section42/hcert-trustlist-mirror/main/trustlist_fr.min.json",
		decode: decodeFR,
	}

	// TrustlistNL refers to the mirrored version of the Dutch Trustlist.
	TrustlistNL = &List{
		URL:    "https://raw.githubusercontent.com/section42/hcert-trustlist-mirror/main/trustlist_nl.raw.keys.json",
		decode: decodeNL,
	}

	// TrustlistSE refers to the mirrored version of the Swedish Trustlist.
	TrustlistSE = &List{
		URL:    "https://raw.githubusercontent.com/section42/hcert-trustlist-mirror/main/trustlist_se.min.json",
		decode: decodeDE,
	}

	// TrustlistCH refers to the mirrored version of the Swiss Trustlist.
	TrustlistCH = &List{
		URL:    "https://raw.githubusercontent.com/section42/hcert-trustlist-mirror/main/trustlist_ch.min.json",
		decode: decodeCH,
	}
)

Functions

func NewCertificateProvider

func NewCertificateProvider(ctx context.Context, list *List) (coronaqr.PublicKeyProvider, error)

NewCertificateProvider downloads the specified TrustList over the internet (usually a few hundred kilobytes in size) and returns a CertificateProvider to use for verifying covid certificates.

Types

type List

type List struct {
	URL string
	// contains filtered or unexported fields
}

A List refers to a mirrored version of an EU member states Trustlist.

Jump to

Keyboard shortcuts

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