certificateprovider

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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