certificatestores

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveCertStores

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

ActiveCertStores implements the CertStoreManager interface

func (*ActiveCertStores) AddStore

func (c *ActiveCertStores) AddStore(storeName string, cert []*x509.Certificate)

AddStore fulfills the CertStoreManager interface. It adds the given certificate under cert store.

func (*ActiveCertStores) AddStoreError

func (c *ActiveCertStores) AddStoreError(storeName string, err error)

func (*ActiveCertStores) DeleteStore

func (c *ActiveCertStores) DeleteStore(storeName string)

DeleteStore fulfills the CertStoreManager interface. It deletes the given cert store.

func (*ActiveCertStores) GetCertsFromStore

func (c *ActiveCertStores) GetCertsFromStore(ctx context.Context, storeName string) ([]*x509.Certificate, error)

GetCertStores fulfills the CertStoreManager interface. It returns a list of certificates in the given store.

type CertStoreManager

type CertStoreManager interface {
	// GetCertsFromStore returns certificates from the given certificate store.
	GetCertsFromStore(ctx context.Context, storeName string) ([]*x509.Certificate, error)

	// AddStore adds the given certificate.
	AddStore(storeName string, cert []*x509.Certificate)

	// DeleteStore deletes the certificate from the given scope.
	DeleteStore(storeName string)

	// AddStoreError adds an error to the given certificate store.
	AddStoreError(storeName string, err error)
}

CertStoreManager is an interface that defines the methods for managing certificate stores across different scopes.

func NewActiveCertStores

func NewActiveCertStores() CertStoreManager

Jump to

Keyboard shortcuts

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