config

package
v0.0.0-...-e9124de Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr   string `name:"listen-addr" default:":8080"`
	NetBoxHost   string `env:"NETBOX_HOST" name:"netbox-host" help:"host of the NetBox server" required:""`
	NetBoxScheme string `env:"NETBOX_SCHEME" name:"netbox-scheme" help:"http/https" default:"https"`
	NetBoxToken  string `env:"NETBOX_TOKEN" name:"netbox-token" help:"API token for NetBox" required:""`

	Tenants map[string]Tenant `name:"tenants" required:""`
}

type Tenant

type Tenant struct {
	Name       string `name:"name" required:""`
	Short      string `name:"short" required:""`
	Street     string `name:"street" required:""`
	City       string `name:"city" required:""`
	NOC        string `name:"noc" required:""`
	Email      string `name:"email" required:""`
	Phone      string `name:"phone" default:""`
	ExpiryDays int    `name:"expiry" default:"60"`
}

Jump to

Keyboard shortcuts

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