restaskacme

package
v3.0.0-rc67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func New

func New() resource.Driver

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"`
}

func (*T) DriverID

func (t *T) DriverID() driver.ID

func (*T) Label

func (t *T) Label(_ context.Context) string

Label is the secs renewed, and where the domains are read from: the status says the driver already.

func (*T) Manifest

func (t *T) Manifest() *manifest.T

Manifest ...

func (*T) Run

func (t *T) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL