certificate

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TypeClient = Type(1)

TypeClient indicates a client certificate type.

View Source
const TypeMetrics = Type(3)

TypeMetrics indicates a metrics certificate type.

View Source
const TypeServer = Type(2)

TypeServer indicates a server certificate type.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

Cache represents an thread-safe in-memory cache of the certificates in the database.

func (*Cache) GetAPICertificate

func (c *Cache) GetAPICertificate(fingerprint string) *api.CertificatePut

GetAPICertificate returns a read-only copy of the API certificate associated to the given fingerprint.

func (*Cache) GetCertificates

func (c *Cache) GetCertificates() map[Type]map[string]x509.Certificate

GetCertificates returns a certificate map.

func (*Cache) GetCertificatesAndProjects

func (c *Cache) GetCertificatesAndProjects() (map[Type]map[string]x509.Certificate, map[string][]string)

GetCertificatesAndProjects returns certificate and project maps.

func (*Cache) GetProjects

func (c *Cache) GetProjects() map[string][]string

GetProjects returns a project map.

func (*Cache) SetCertificates

func (c *Cache) SetCertificates(certificates []*api.Certificate)

SetCertificates sets the certificates on the Cache.

type Type

type Type int

Type indicates the type of the certificate.

func FromAPIType

func FromAPIType(apiType string) (Type, error)

FromAPIType converts an API type to the equivalent Type.

Jump to

Keyboard shortcuts

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