handlers

package
v0.0.0-...-0426f9c Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVoucherByGUIDHandler

func GetVoucherByGUIDHandler(w http.ResponseWriter, r *http.Request)

GetVoucherByGUIDHandler returns a PEM-encoded voucher by path GUID.

func GetVoucherHandler

func GetVoucherHandler(w http.ResponseWriter, r *http.Request)

func HealthHandler

func HealthHandler(w http.ResponseWriter, r *http.Request)

HealthHandler responds with the version and status

func InsertVoucherHandler

func InsertVoucherHandler(ownerPKeys []crypto.PublicKey) http.HandlerFunc

func OwnerInfoHandler

func OwnerInfoHandler(w http.ResponseWriter, r *http.Request)

func ResellHandler

func ResellHandler(to2Server *fdo.TO2Server) http.HandlerFunc

func RvInfoHandler

func RvInfoHandler() http.HandlerFunc

func To0Handler

func To0Handler(state *To0HandlerState) http.HandlerFunc

Types

type HealthResponse

type HealthResponse struct {
	Version string `json:"version"`
	Status  string `json:"status"`
}

type To0HandlerState

type To0HandlerState struct {
	VoucherState fdo.OwnerVoucherPersistentState
	KeyState     fdo.OwnerKeyPersistentState
	UseTLS       bool
}

Jump to

Keyboard shortcuts

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