config

package
v0.0.0-...-64b876b Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACL

type ACL struct {
	Pattern string `hcl:"pattern,label"`
	Token   string `hcl:"token"`
}

type CertMagic

type CertMagic struct {
	Host string `hcl:"host,label"`
}

type Config

type Config struct {
	Server   Server   `hcl:"server,block"`
	Provider Provider `hcl:"provider,block"`
	ACLs     []ACL    `hcl:"acl,block"`
}

func Parse

func Parse(config string) (*Config, error)

func ParseFile

func ParseFile(filename string) (*Config, error)

type Provider

type Provider struct {
	Type   string   `hcl:"type,label"`
	Remain hcl.Body `hcl:",remain"`
}

type Server

type Server struct {
	ListenAddress string     `hcl:"listen_addr"`
	CertMagic     *CertMagic `hcl:"certmagic,block"`
}

Jump to

Keyboard shortcuts

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