Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrType ¶
type ErrType int
ErrType is the type for CA errors.
const ( // CANotReady means the CA is not ready to sign CSRs. CANotReady ErrType = iota // CSRError means the CA cannot sign CSR due to CSR error. CSRError // TTLError means the required TTL is invalid. TTLError // CertGenError means an error happened during the certificate generation. CertGenError // CAIllegalConfig means the configuration/deployment parameters for CA are incorrect CAIllegalConfig // CAInitFail means some other unexpected and fatal initilization failure CAInitFail )
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
Error encapsulates the short and long errors.
func (Error) HTTPErrorCode ¶
HTTPErrorCode returns an HTTP error code representing the error type.
Click to show internal directories.
Click to hide internal directories.