Documentation ¶
Index ¶
- Constants
- Variables
- func ColourTime(date time.Time) string
- func ErrorOutput(errResult error, override string, outputFormat string)
- func Execute()
- func GetDERPConfig() headscale.DERPConfig
- func GetDNSConfig() (*tailcfg.DNSConfig, string)
- func GetFileMode(key string) fs.FileMode
- func HasMachineOutputFlag() bool
- func LoadConfig(path string) error
- func SuccessOutput(result interface{}, override string, outputFormat string)
- type Error
Constants ¶
View Source
const ( PermissionFallback = 0o700 HeadscaleDateTimeFormat = "2006-01-02 15:04:05" )
View Source
const ( // 90 days. DefaultAPIKeyExpiry = 90 * 24 * time.Hour )
View Source
const (
DefaultPreAuthKeyExpiry = 1 * time.Hour
)
Variables ¶
View Source
var Version = "dev"
Functions ¶
func ColourTime ¶ added in v0.13.0
func ErrorOutput ¶
func GetDERPConfig ¶ added in v0.11.0
func GetDERPConfig() headscale.DERPConfig
func GetDNSConfig ¶ added in v0.7.1
func GetFileMode ¶ added in v0.12.4
func HasMachineOutputFlag ¶ added in v0.12.1
func HasMachineOutputFlag() bool
func LoadConfig ¶
func SuccessOutput ¶ added in v0.12.1
Types ¶
Click to show internal directories.
Click to hide internal directories.