cli

package
v0.12.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPreAuthKeyExpiry = 1 * time.Hour
)

Variables

View Source
var Version = "dev"

Functions

func ErrorOutput

func ErrorOutput(errResult error, override string, outputFormat string)

func Execute added in v0.6.1

func Execute()

func GetDERPConfig added in v0.11.0

func GetDERPConfig() headscale.DERPConfig

func GetDNSConfig added in v0.7.1

func GetDNSConfig() (*tailcfg.DNSConfig, string)

func HasMachineOutputFlag added in v0.12.1

func HasMachineOutputFlag() bool

func LoadConfig

func LoadConfig(path string) error

func SuccessOutput added in v0.12.1

func SuccessOutput(result interface{}, override string, outputFormat string)

Types

type Error added in v0.12.1

type Error string

Error is used to compare errors as per https://dave.cheney.net/2016/04/07/constant-errors

func (Error) Error added in v0.12.1

func (e Error) Error() string

Jump to

Keyboard shortcuts

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