Documentation ¶
Index ¶
- func AuthenticationHandler(next http.Handler) http.Handler
- func CAPubKeyHandler(writer http.ResponseWriter, _ *http.Request)
- func CheckPrincipals(allowed []db.Principal, requested []string) bool
- func ComputeValidity() (uint64, uint64)
- func ErrorHandler(next http.Handler) http.Handler
- func GetCAKey() (caPriv ssh.Signer)
- func KeySignHandler(writer http.ResponseWriter, request *http.Request)
- func LoggingHandler(next http.Handler) http.Handler
- func MakeSSHCertificate(pubKey ssh.PublicKey, principals []string) (*ssh.Certificate, error)
- func MarshallSigningRequest(requestReader io.Reader) (model.KeySignRequest, error)
- func PingHandler(writer http.ResponseWriter, _ *http.Request)
- func Serve(httpConfig *cmdModel.HTTPConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CAPubKeyHandler ¶ added in v0.0.4
func CAPubKeyHandler(writer http.ResponseWriter, _ *http.Request)
func ComputeValidity ¶
func KeySignHandler ¶
func KeySignHandler(writer http.ResponseWriter, request *http.Request)
func MakeSSHCertificate ¶
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.
Click to show internal directories.
Click to hide internal directories.