acmeservice

package
v0.1.23 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string
	Password string
}

type AuthConfig

type AuthConfig struct {
	Type   auth.Type
	Config RawYAML
}

func (AuthConfig) Load

func (ac AuthConfig) Load(config_dir string) (auth.Authenticator, error)

type Config

type Config struct {
	Port          string
	Certificate   string
	Key           string
	Authenticator AuthConfig
	Provider      ProviderConfig
}

func (*Config) Load

func (c *Config) Load(path string) error

type ConfigLoader

type ConfigLoader interface {
	Load() (config Config, conf_dir string, err error)
}

type ConfigYAMLBytesLoader

type ConfigYAMLBytesLoader struct {
	Config    []byte
	ConfigDir string
}

func (*ConfigYAMLBytesLoader) Load

func (c *ConfigYAMLBytesLoader) Load() (config Config, conf_dir string, err error)

type ConfigYAMLFileLoader

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

func (*ConfigYAMLFileLoader) Load

func (c *ConfigYAMLFileLoader) Load() (config Config, conf_dir string, err error)

type DNSProxy

type DNSProxy struct {
	ConfigLoader ConfigLoader
	Auth         auth.Authenticator
	Provider     providers.DNSProvider
}

func New

func New(loader ConfigLoader) (*DNSProxy, error)

func NewFromFile

func NewFromFile(config string) (*DNSProxy, error)

func (*DNSProxy) Authenticate

func (s *DNSProxy) Authenticate(auth Auth, record Record) error

func (*DNSProxy) Cleanup

func (s *DNSProxy) Cleanup(record Record) error

func (*DNSProxy) Present

func (s *DNSProxy) Present(record Record) error

func (*DNSProxy) Reload

func (s *DNSProxy) Reload() (err error)

type ProviderConfig

type ProviderConfig struct {
	Type   providers.Type
	Config RawYAML
}

func (ProviderConfig) Load

func (pc ProviderConfig) Load(config_dir string) (providers.DNSProvider, error)

type RawYAML

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

func (*RawYAML) UnmarshalYAML

func (r *RawYAML) UnmarshalYAML(unmarshal func(interface{}) error) error

type Record

type Record struct {
	FQDN  string
	Value string
}

Jump to

Keyboard shortcuts

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