handlers

package
v0.0.1-0...-4183133 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2015 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSubjectKeyId

func GenerateSubjectKeyId(pub crypto.PublicKey) ([]byte, error)

func Index

func Index(w http.ResponseWriter, req *http.Request)

Index renders the primary webform

func Router

func Router() *mux.Router

Router returns a mux router with the routes supported by the audit service It is generated by a method to faciliate testing

Types

type Checker

type Checker struct {
	CA  *x509.Certificate
	Key *rsa.PrivateKey
	// contains filtered or unexported fields
}

func NewChecker

func NewChecker(caFiles string, fn checkFunc) (*Checker, error)

func (*Checker) PerformCheck

func (ch *Checker) PerformCheck(w http.ResponseWriter, req *http.Request)

PerformCheck conducts a background check being passed in from the frontend. It expects a CSR as the request body being passed in, with fields matching the specified requirements and formats to perform the check.

On successful check it returns a 200 status code and a signed certificate. On a failed check, it will return a 403 (forbidden) status code.

Jump to

Keyboard shortcuts

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