Documentation
¶
Index ¶
- type CaddyCertMan
- func (c *CaddyCertMan) DeleteCert(ctx context.Context, hostname string) error
- func (c *CaddyCertMan) GetCertInfo(ctx context.Context, hostname string) (*CertInfo, error)
- func (c *CaddyCertMan) HasCert(ctx context.Context, hostname string) (bool, error)
- func (c *CaddyCertMan) PokeCert(ctx context.Context, hostname string) error
- type CertInfo
- type CertMan
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaddyCertMan ¶
type CaddyCertMan struct {
// contains filtered or unexported fields
}
func NewCaddyCertMan ¶
func NewCaddyCertMan(storage certmagic.Storage, tlsApp *caddytls.TLS) *CaddyCertMan
func (*CaddyCertMan) DeleteCert ¶
func (c *CaddyCertMan) DeleteCert(ctx context.Context, hostname string) error
func (*CaddyCertMan) GetCertInfo ¶
type CertMan ¶
type CertMan interface {
// HasCert checks if a certificate for the given hostname exists in the certificate storage.
HasCert(ctx context.Context, hostname string) (bool, error)
// GetCertInfo retrieves information about the certificate for the given hostname, if it exists.
GetCertInfo(ctx context.Context, hostname string) (*CertInfo, error)
// PokeCert triggers the certificate issuance process for the given hostname.
PokeCert(ctx context.Context, hostname string) error
// DeleteCert removes a matching certificate from storage, if it exists. This is useful for testing and cleanup.
DeleteCert(ctx context.Context, hostname string) error
}
Click to show internal directories.
Click to hide internal directories.