clientsetup

package
v0.57.8 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package clientsetup renders the public LAN DNS and browser-CA handoff from verified host custody.

Index

Constants

View Source
const Path = "/device/setup"

Variables

This section is empty.

Functions

func Handler

func Handler(root string) http.Handler

Handler exposes only public setup material. The router admits LAN sources on its web listener; the Host check here confines this exception to the exact site address. It never dispatches to a Hub identity or management route.

func Render

func Render(profile Profile) ([]byte, error)

func URL

func URL(address string) string

Types

type Profile

type Profile struct {
	Domain      string
	Address     string
	Fingerprint string
	RootPEM     string
	Linux       string
}

func Load

func Load(wd string) (Profile, error)

Load accepts no network-supplied root, resolver or domain.

func (Profile) LinuxSHA256

func (p Profile) LinuxSHA256() string

func (Profile) SetupURL

func (p Profile) SetupURL() string

Jump to

Keyboard shortcuts

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