daemon

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Email        string `yaml:"email"`
	SSHPublicKey string `yaml:"ssh_public_key"`
	// contains filtered or unexported fields
}

type Certificate

type Certificate struct {
	AccountEmail   string   `yaml:"account"`
	CommonName     string   `yaml:"common_name"`
	SAN            []string `yaml:"subject_alternative_names"`
	PreferredChain string   `yaml:"preferred_chain"`
	// contains filtered or unexported fields
}

type Configuration

type Configuration struct {
	Accounts     []Account     `yaml:"accounts"`
	Certificates []Certificate `yaml:"certificates"`
}

type Daemon

type Daemon struct {
	// contains filtered or unexported fields
}

func New

func New(options *Options) (*Daemon, error)

func (*Daemon) Run

func (d *Daemon) Run()

func (*Daemon) Shutdown

func (d *Daemon) Shutdown(_ context.Context) error

type Options

type Options struct {
	Interval           time.Duration
	LEConfigPath       string
	LEAPI              string
	AccountDir         string
	CertificateDir     string
	AuthorizedKeysPath string
}

Jump to

Keyboard shortcuts

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