Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package server serves built-in directory and inventory facts and their private management APIs. It authenticates service keys; public user authentication and administrative authorization belong to the control plane. Stores retain ownership of mutation invariants, transactions, and audit records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectoryHandler

func DirectoryHandler(users directory.Directory, managed directory.Store, caKey, controlKey sshcert.RawPublicKey) (http.Handler, error)

DirectoryHandler assembles directory lookup and private control routes. users supplies facts and actor snapshots; managed, when nonnil, supplies mutations and SCIM provisioning. An empty control key disables all private control routes. The caller owns the sources and their lifetime.

func InventoryHandler

func InventoryHandler(store inventory.Store, caKey, controlKey sshcert.RawPublicKey) (http.Handler, error)

InventoryHandler assembles managed inventory lookup and private control routes. An empty control key disables management. The caller owns the store and its lifetime; the CA reader key never confers mutation authority.

func LookupHandler

func LookupHandler(users directory.Directory, hosts inventory.Hosts, caKey, controlKey sshcert.RawPublicKey) (http.Handler, error)

LookupHandler serves one kind of fact; directory and inventory use separate audiences and transports. Either the CA reader or control key may read.

Types

This section is empty.

Jump to

Keyboard shortcuts

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