Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var JobQueue = make(chan CertReq, 10)
JobQueue holds all active jobs
Functions ¶
func CertWorker ¶
func CertWorker(id int, client api.CertificateIssuerClient, storage *CertStorage)
CertWorker is the actual worker routine that eats away from the queue
func IsJobsStopped ¶
IsJobsStopped determines whether all jobs supplied is stopped or not
func StartClient ¶
func StartClient(config *config.ClientConfig, userAgent string)
StartClient starts a client instance with a client config and a user agent
Types ¶
type CertReq ¶
CertReq represents a certificate request
func NewCertReq ¶
NewCertReq constructs an instance of the CertReq struct
type CertStorage ¶
type CertStorage struct {
// contains filtered or unexported fields
}
CertStorage represents where the certificates is stored at the client side
func NewCertStorage ¶
func NewCertStorage(storageDirectory string) *CertStorage
NewCertStorage constructs an instance of the CertStorage struct, with validation
func (*CertStorage) LocallyStoredDomains ¶
func (c *CertStorage) LocallyStoredDomains() ([]string, error)
LocallyStoredDomains lists all domain names that has TLS certificates stored
func (*CertStorage) Store ¶
func (c *CertStorage) Store(domain string, response *api.CertificateResponse) error
Store certificates for a given API response and domain
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
Job is a container for a repeating execution of a function.
A Job executes it's function continuously with a predefined delay between executions. The Job only stops when the `Stop` function is called.