config

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SupportedIssuers []string
	GlobalConfig     Config
	SecuredPlugins   []string
)

Functions

This section is empty.

Types

type Common

type Common struct {
	APIKeyHash                string   `yaml:"api_key_hash"`
	CertDaysRenewal           string   `yaml:"cert_days_renewal"`
	RootPathAccount           string   `yaml:"rootpath_account"`
	RootPathCertificate       string   `yaml:"rootpath_certificate"`
	Plugins                   []Plugin `yaml:"plugins"`
	HTTPClientRetryMax        int      `yaml:"http_client_retry_max"`
	HTTPClientRetryWaitMin    int      `yaml:"http_client_retry_wait_min"`
	HTTPClientRetryWaitMax    int      `yaml:"http_client_retry_wait_max"`
	HTTPClientRetryStatusCode []int    `yaml:"http_client_retry_status_code"`
	HTTPClientDebug           bool     `yaml:"http_client_debug"`
}

Common represents common config.

type Config

type Config struct {
	Common  Common            `yaml:"common"`
	Issuer  map[string]Issuer `yaml:"issuer"`
	Storage Storage           `yaml:"storage"`
}

Config represents config.

func (*Config) UnmarshalYAML

func (s *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements the yaml.Unmarshaler interface.

type Issuer

type Issuer struct {
	Contact             string `yaml:"contact"`
	CADirURL            string `yaml:"ca_dir_url"`
	EAB                 bool   `yaml:"eab"`
	KID                 string `yaml:"kid,omitempty"`
	HMAC                string `yaml:"hmac,omitempty"`
	DNSChallenge        string `yaml:"dns_challenge"`
	HTTPChallenge       string `yaml:"http_challenge"`
	HTTPChallengeCfg    string `yaml:"http_challenge_config"`
	OverallRequestLimit int    `yaml:"overall_request_limit"`
	CertificateTimeout  int    `yaml:"certificate_timeout"`
	Unregister          bool   `yaml:"unregister"`
}

type Plugin

type Plugin struct {
	Name     string            `yaml:"name"`
	Path     string            `yaml:"path"`
	Checksum string            `yaml:"checksum"`
	Timeout  int               `yaml:"timeout"`
	Env      map[string]string `yaml:"env"`
}

Plugin represents plugin.

type Storage

type Storage struct {
	Vault Vault `yaml:"vault"`
}

Storage represents storage config.

type Vault

type Vault struct {
	RoleID       string `yaml:"role_id"`
	SecretID     string `yaml:"secret_id"`
	URL          string `yaml:"url"`
	SecretEngine string `yaml:"secret_engine"`
	CertPrefix   string `yaml:"certificate_prefix"`
	TokenPrefix  string `yaml:"token_prefix"`
	MountPath    string `yaml:"mount_path"`
	RetryMax     int    `yaml:"retry_max"`
	RetryWaitMin int    `yaml:"retry_wait_min"`
	RetryWaitMax int    `yaml:"retry_wait_max"`
}

Vault represents vault storage config.

Jump to

Keyboard shortcuts

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