config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 4 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"`
	Server  string `yaml:"server"`
	Storage string `yaml:"storage"`
}

type Config

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

type DNS

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

type File

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

type HTTP

type HTTP struct {
	TLS      TLS    `yaml:"tls"`
	Domain   string `yaml:"domain"`
	Listen   string `yaml:"listen"`
	Username string `yaml:"username"`
	Password string `yaml:"password"`
}

type Ingress

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

type Logging

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

type NS

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

type Providers

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

type Record

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

type SOA

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

type TLS

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

Jump to

Keyboard shortcuts

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