dehydrated

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	pb.DehydratedConfig
}

Config represents the dehydrated configuration

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a new Config with default values for production use. It sets up the configuration for Let's Encrypt v2 API with standard settings.

func NewConfig

func NewConfig() *Config

NewConfig creates a new Config with default values. It initializes all fields with sensible defaults for the dehydrated ACME client.

func (*Config) DomainSpecificConfig

func (c *Config) DomainSpecificConfig(path string) *Config

func (*Config) Load

func (c *Config) Load() *Config

Load loads the configuration from files. It reads the config file if specified, resolves all paths to absolute paths, and returns the config for method chaining.

func (*Config) SetValue added in v0.2.0

func (c *Config) SetValue(key, value string)

func (*Config) String

func (c *Config) String() string

String returns a string representation of the Config.

func (*Config) ToProto added in v0.0.14

func (c *Config) ToProto() *pb.DehydratedConfig

func (*Config) WithBaseDir

func (c *Config) WithBaseDir(baseDir string) *Config

WithBaseDir sets the base directory for the config. This is the root directory where all other paths will be resolved relative to.

func (*Config) WithConfigFile

func (c *Config) WithConfigFile(configFile string) *Config

WithConfigFile sets the path to the config file. This file will be used to load configuration settings for dehydrated.

Jump to

Keyboard shortcuts

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