dnsproviders

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProviders

func GetProviders() []string

func LookupEnv

func LookupEnv(key string, fallback string) string

func LookupEnvAnyKey

func LookupEnvAnyKey(keys []string, fallback string) string

func RegisterInputs

func RegisterInputs(provider string, title string, inputs Inputs)

Types

type HTML

type HTML struct {
	Label string
	Input string
	Help  string
}

type Input

type Input struct {
	Type        string // text / textarea / radio / checkbox / select
	Name        string
	Label       string
	Value       string
	Options     []Option
	Placeholder string
	Help        string
	Required    bool
	Pattern     string // 正则表达式(首尾不要含^和$)
	MinLength   *int
	MaxLength   *int
	Min         *int
	Max         *int
	Step        *int
	Default     string
}

func (Input) BuildHTMLAttrs

func (i Input) BuildHTMLAttrs() string

func (Input) RenderHTMLHelp

func (i Input) RenderHTMLHelp() string

func (Input) RenderHTMLInput

func (i Input) RenderHTMLInput(namePrefix string) string

func (Input) RenderHTMLLabel

func (i Input) RenderHTMLLabel() string

type Inputs

type Inputs []Input

func GetInputs

func GetInputs(provider string) Inputs

func (Inputs) Clone

func (i Inputs) Clone() Inputs

func (Inputs) RenderAllHTMLs

func (i Inputs) RenderAllHTMLs(namePrefix string) []HTML

func (Inputs) RenderCaddyfile

func (i Inputs) RenderCaddyfile() []string

func (Inputs) RenderHTMLs

func (i Inputs) RenderHTMLs(namePrefix string) []HTML

type Option

type Option struct {
	Value   string
	Text    string
	Checked bool
}

type Provider

type Provider struct {
	Provider string
	Title    string
	Inputs   Inputs
}

func Get

func Get(provider string) Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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