config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config contains connection bootstrap and remotely supplied certificate options.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(c Bootstrap) error

Types

type Bootstrap

type Bootstrap struct {
	MasterURL string `json:"master_url"`
	Token     string `json:"token"`
}

func Load

func Load(path string) (Bootstrap, error)

type CertConfig

type CertConfig struct {
	AutoTLS               bool              `json:"auto_tls,omitempty"`
	Domain                string            `json:"domain"`
	Email                 string            `json:"email,omitempty"`
	CertFile              string            `json:"cert_file,omitempty"`
	KeyFile               string            `json:"key_file,omitempty"`
	CertDir               string            `json:"-"`
	HTTPPort              int               `json:"http_port,omitempty"`
	CertMode              string            `json:"cert_mode"`
	DNSProvider           string            `json:"dns_provider,omitempty"`
	DNSEnv                map[string]string `json:"dns_env,omitempty"`
	CertContent           string            `json:"cert_content,omitempty"`
	KeyContent            string            `json:"key_content,omitempty"`
	PropagationDelay      string            `json:"propagation_delay,omitempty"`
	StartupTimeoutSeconds int               `json:"startup_timeout_seconds,omitempty"`
}

CertConfig is transported inside a remote certificate profile, never bootstrap.

Jump to

Keyboard shortcuts

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