Documentation
¶
Overview ¶
Package restaskacme is the task.acme driver: a task renewing the certificates of secs, when due, from the ACME directory each names, or as certificate create generates them.
Its action is om's own, rather than a command its writer chooses, so a namespace administrator may configure it: it writes the certificates of the secs its namespace may use, and on the node only the http-01 challenge tokens, inside a volume of its object.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var GroupCertificates = keywords.Group{ ID: "certificates", Name: "Certificates", Text: keywords.NewText(fs, "text/group/certificates"), Order: 20, Required: true, Strategies: []keywords.Strategy{ { ID: "secs", Name: "Secs named", Text: keywords.NewText(fs, "text/strategy/certificates/secs"), Uses: []string{"secs"}, }, { ID: "domains", Name: "Domains read from files", Text: keywords.NewText(fs, "text/strategy/certificates/domains"), Uses: []string{"domains_from", "domains_to"}, Requires: []string{"domains_from", "domains_to"}, }, }, }
GroupCertificates holds the certificates the task renews: the secs it names, the domains it reads from files and the secs it creates for them, the ACME directory and account of these, and where the http-01 challenge is answered from.
A task renews the secs it names, the secs of the domains it reads, or both: the two strategies exclude nothing of each other, as a run renews both, with an account at a directory they share. The group is required, as a run with neither fails with "no sec to renew", and the domains are read with both domains_from and domains_to, which checkDomains refuses alone: the validation says so when the configuration is written.
Functions ¶
Types ¶
type T ¶
type T struct {
restask.BaseTask
Path naming.Path `json:"path"`
Secs []string `json:"secs"`
Webroot string `json:"webroot"`
Directory string `json:"directory"`
Email string `json:"email"`
DomainsFrom string `json:"domains_from"`
DomainsTo string `json:"domains_to"`
Timeout *time.Duration `json:"timeout"`
}