fulcioroots

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(root *x509.CertPool, opts ...CertificateSource) (*x509.CertPool, *x509.CertPool, error)

New returns new CertPool(s) with certificates populated by provided CertificateSources.

func NewFromConfig

func NewFromConfig(ctx context.Context, cfg *config.Config) (*x509.CertPool, *x509.CertPool, error)

Types

type CertificateSource

type CertificateSource func() ([]*x509.Certificate, error)

func FromFile

func FromFile(path string) CertificateSource

FromFile loads certs from a PEM file.

func FromTUF

func FromTUF(ctx context.Context) CertificateSource

FromTUF loads certs from the TUF client.

func Static

func Static(certs ...*x509.Certificate) CertificateSource

Static loads a static set of Certificates.

Jump to

Keyboard shortcuts

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