package
1.6.5
Repository: https://github.com/cloudflare/cfssl.git
Documentation: pkg.go.dev

# Packages

Package bundle implements the HTTP handler for the bundle command.
Package certinfo implements the HTTP handler for the certinfo command.
Package client implements a Go client for CFSSL API commands.
Package crl implements the HTTP handler for the crl command.
Package gencrl implements the HTTP handler for the gencrl commands.
Package generator implements the HTTP handlers for certificate generation.
Package info implements the HTTP handler for the info command.
Package initca implements the HTTP handler for the CA initialization command.
Package ocsp implements the HTTP handler for the ocsp commands.
Package revoke implements the HTTP handler for the revoke command.
Package sign implements the HTTP handler for the certificate signing command.
Package signhandler provides the handlers for signers.

# Functions

HandleError is the centralised error handling and reporting.
NewErrorResponse is a shortcut for creating an error response for a single error.
NewSuccessResponse is a shortcut for creating new successful API responses.
NewSuccessResponseWithMessage is a shortcut for creating new successul API responses that includes a message.
ProcessRequestFirstMatchOf reads a JSON blob for the request and returns the first match of a set of keywords.
ProcessRequestOneOf reads a JSON blob for the request and makes sure it contains one of a set of keywords.
SendResponse builds a response from the result, sets the JSON header, and writes to the http.ResponseWriter.
SendResponseWithMessage builds a response from the result and the provided message, sets the JSON header, and writes to the http.ResponseWriter.

# Structs

HTTPHandler is a wrapper that encapsulates Handler interface as http.Handler.
Response implements the CloudFlare standard for API responses.
ResponseMessage implements the standard for response errors and messages.

# Interfaces

Handler is an interface providing a generic mechanism for handling HTTP requests.

# Type aliases

HandlerFunc is similar to the http.HandlerFunc type; it serves as an adapter allowing the use of ordinary functions as Handlers.