Documentation
¶
Index ¶
- Constants
- func Launch(ctx context.Context, hook string, timeout time.Duration, ...) error
- func Noop(m *Manager)
- type Action
- type Manager
- func (h *Manager) Clone() *Manager
- func (h *Manager) Deploy(ctx context.Context, certRes *certificate.Resource, ...) error
- func (h *Manager) Post(ctx context.Context) error
- func (h *Manager) PreForCSR(ctx context.Context, certID string, request certificate.ObtainForCSRRequest) error
- func (h *Manager) PreForDomains(ctx context.Context, certID string, request certificate.ObtainRequest) error
- type Option
Constants ¶
View Source
const ( EnvAccountID = envPrefix + "ACCOUNT_ID" EnvAccountEmail = envPrefix + "ACCOUNT_EMAIL" EnvAccountServer = envPrefix + "ACCOUNT_SERVER" )
Metadata related to account.
View Source
const ( EnvCertName = envPrefix + "CERT_NAME" EnvCertNameSanitized = envPrefix + "CERT_NAME_SANITIZED" EnvCertKeyType = envPrefix + "CERT_KEY_TYPE" EnvCertDomains = envPrefix + "CERT_DOMAINS" EnvCertPath = envPrefix + "CERT_PATH" EnvCertKeyPath = envPrefix + "CERT_KEY_PATH" EnvIssuerCertKeyPath = envPrefix + "ISSUER_CERT_PATH" EnvCertPEMPath = envPrefix + "CERT_PEM_PATH" EnvCertPFXPath = envPrefix + "CERT_PFX_PATH" )
Metadata related to certificate.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages hooks.
func NewManager ¶
func NewManager(certsStorage *storage.CertificatesStorage, options ...Option) *Manager
NewManager creates a new hook Manager.
func (*Manager) Deploy ¶
func (h *Manager) Deploy(ctx context.Context, certRes *certificate.Resource, options *storage.SaveOptions) error
Deploy runs the deploy-hook if defined.
func (*Manager) Post ¶
Post runs the post-hook if defined. This must be called inside a defer statement to ensure the hook is always run.
func (*Manager) PreForCSR ¶
func (h *Manager) PreForCSR(ctx context.Context, certID string, request certificate.ObtainForCSRRequest) error
PreForCSR runs the pre-hook if defined.
func (*Manager) PreForDomains ¶
func (h *Manager) PreForDomains(ctx context.Context, certID string, request certificate.ObtainRequest) error
PreForDomains runs the pre-hook if defined.
type Option ¶
type Option func(m *Manager)
func WithAccountMetadata ¶
WithAccountMetadata initializes the metadata with the account data.
func WithDeploy ¶
WithDeploy sets the deploy-hook.
Click to show internal directories.
Click to hide internal directories.