bot

package
v1.2.3-fred.12 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Destination

type Destination interface {
	// Init attempts to initialize this destination for writing. Init should be
	// idempotent and may write informational log messages if resources are
	// created.
	Init(subdirs []string) error

	// Verify is run before renewals to check for any potential problems with
	// the destination. These errors may be informational (logged warnings) or
	// return an error that may potentially terminate the process.
	Verify(keys []string) error

	// Write stores data to the destination with the given name.
	Write(name string, data []byte) error

	// Read fetches data from the destination with a given name.
	Read(name string) ([]byte, error)

	// TryLock attempts to lock a destination. This is non-blocking, and will
	// return an error if it is not possible to lock the destination.
	// TryLock should be used to lock a destination so it cannot be used by
	// multiple processes of tbot concurrently.
	TryLock() (func() error, error)
}

Destination can persist renewable certificates.

Jump to

Keyboard shortcuts

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