Documentation ¶
Overview ¶
Package gensign contains the concrete functions to process user requests and to generate CSRs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsErrorOfType ¶
IsErrorOfType returns true if the error matches to the given error type.
Types ¶
type CreateHandler ¶
CreateHandler is the interface function to initialize Handler.
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error defines the format of an error coming from gensign handlers.
func NewErrorWithMsg ¶
NewErrorWithMsg returns a new Error with a message.
type ErrorType ¶
type ErrorType uint8
ErrorType specifies possible error types returned from CA.
const ( // Unknown indicates the type of the error is unknown. Unknown ErrorType // HandlerDisabled indicates the handler is disabled (by config). HandlerDisabled // HandlerAuthN indicates the handler fails with authentication. HandlerAuthN // InvalidParams indicates the request parameter is invalid. InvalidParams // HandlerGenCSRErr indicates the handler fails to generate a certificate request. HandlerGenCSRErr // HandlerConfErr indicates the handler fails to parse the handler config. HandlerConfErr // Panic indicates a panic raised from the handler. Panic )
Click to show internal directories.
Click to hide internal directories.