Help us shape the future of Go! Take the 2026 Go Developer Survey

certificateprovider

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeCertificates

func DecodeCertificates(value []byte) ([]*x509.Certificate, error)

Decode PEM-encoded bytes into an x509.Certificate chain.

func GetCertificateProviders

func GetCertificateProviders() map[string]CertificateProvider

returns the internal certificate provider map

func Register

func Register(name string, provider CertificateProvider)

Register adds the factory to the built in providers map

Types

type CertStoreConfig

type CertStoreConfig map[string]string

This is a map containing Cert store configuration including name, tenantID, and cert object information

type CertificateProvider

type CertificateProvider interface {
	// Returns an array of certificates and the provider specific cert attributes based on certificate properties defined in attrib map
	GetCertificates(ctx context.Context, attrib map[string]string) ([]*x509.Certificate, CertificatesStatus, error)
}

CertificateProvider is an interface that defines methods to be implemented by a each certificate provider

type CertificatesStatus

type CertificatesStatus map[string]interface{}

This is a map of properties for fetched certificates The key and values are specific to each provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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