Documentation ¶
Index ¶
- type ActiveCertStores
- func (c *ActiveCertStores) AddStore(storeName string, cert []*x509.Certificate)
- func (c *ActiveCertStores) AddStoreError(storeName string, err error)
- func (c *ActiveCertStores) DeleteStore(storeName string)
- func (c *ActiveCertStores) GetCertsFromStore(ctx context.Context, storeName string) ([]*x509.Certificate, error)
- type CertStoreManager
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
Click to show internal directories.
Click to hide internal directories.