config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TLSModeACME = "acme"
View Source
const TLSModeFile = "file"

Variables

This section is empty.

Functions

func Parse

func Parse(file string)

Types

type ACME

type ACME struct {
	Email   string `yaml:"email" mapstructure:"EMAIL"`
	Server  string `yaml:"server" mapstructure:"SERVER"`
	Storage string `yaml:"storage" mapstructure:"STORAGE"`
}

type Config

type Config struct {
	NS        NS        `yaml:"ns" mapstructure:"NS"`
	SOA       SOA       `yaml:"soa" mapstructure:"SOA"`
	DNS       DNS       `yaml:"dns" mapstructure:"DNS"`
	HTTP      HTTP      `yaml:"http" mapstructure:"HTTP"`
	Ingress   Ingress   `yaml:"ingress" mapstructure:"INGRESS"`
	Logging   Logging   `yaml:"logging" mapstructure:"LOGGING"`
	Providers Providers `yaml:"providers" mapstructure:"PROVIDERS"`
}
var Conf *Config

type DNS

type DNS struct {
	Admin    string            `yaml:"admin" mapstructure:"ADMIN"`
	Listen   string            `yaml:"listen" mapstructure:"LISTEN"`
	NSName   string            `yaml:"nsname" mapstructure:"NSNAME"`
	Records  map[string]Record `yaml:"records" mapstructure:"RECORDS"`
	Protocol string            `yaml:"protocol" mapstructure:"PROTOCOL"`
}

type File

type File struct {
	TLSKey  string `yaml:"tlsKey" mapstructure:"TLSKEY"`
	TLSCert string `yaml:"tlsCert" mapstructure:"TLSCERT"`
}

type HTTP

type HTTP struct {
	TLS    TLS    `yaml:"tls" mapstructure:"TLS"`
	Domain string `yaml:"domain" mapstructure:"DOMAIN"`
	Listen string `yaml:"listen" mapstructure:"LISTEN"`
}

type Ingress

type Ingress struct {
	IP string `yaml:"ip" mapstructure:"IP"`
}

type Logging

type Logging struct {
	Level string `yaml:"level" mapstructure:"LEVEL"`
}

type NS

type NS struct {
	IP string `yaml:"ip" mapstructure:"IP"`
}

type Providers

type Providers struct {
	ACME ACME `yaml:"acme" mapstructure:"ACME"`
	File File `yaml:"file" mapstructure:"FILE"`
}

type Record

type Record struct {
	Type  string `yaml:"type" mapstructure:"TYPE"`
	Value string `yaml:"value" mapstructure:"VALUE"`
}

type SOA

type SOA struct {
	Domain string `yaml:"domain" mapstructure:"DOMAIN"`
}

type TLS

type TLS struct {
	Mode string `yaml:"mode" mapstructure:"MODE"`
}

Jump to

Keyboard shortcuts

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