server

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthenticationHandler

func AuthenticationHandler(next http.Handler) http.Handler

func CAPubKeyHandler added in v0.0.4

func CAPubKeyHandler(writer http.ResponseWriter, _ *http.Request)

func CheckPrincipals

func CheckPrincipals(allowed []db.Principal, requested []string) bool

func ComputeValidity

func ComputeValidity() (uint64, uint64)

func ErrorHandler

func ErrorHandler(next http.Handler) http.Handler

func GetCAKey

func GetCAKey() (caPriv ssh.Signer)

func KeySignHandler

func KeySignHandler(writer http.ResponseWriter, request *http.Request)

func LoggingHandler

func LoggingHandler(next http.Handler) http.Handler

func MakeSSHCertificate

func MakeSSHCertificate(pubKey ssh.PublicKey, principals []string) (*ssh.Certificate, error)

func MarshallSigningRequest

func MarshallSigningRequest(requestReader io.Reader) (model.KeySignRequest, error)

func PingHandler added in v0.0.4

func PingHandler(writer http.ResponseWriter, _ *http.Request)

func Serve

func Serve(httpConfig *cmdModel.HTTPConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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