istio: Index | Files

package error

import ""


Package Files


type ErrType Uses

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.
    // TTLError means the required TTL is invalid.
    // CertGenError means an error happened during the certificate generation.

type Error Uses

type Error struct {
    // contains filtered or unexported fields

Error encapsulates the short and long errors.

func NewError Uses

func NewError(t ErrType, err error) *Error

NewError creates a new Error instance.

func (Error) Error Uses

func (e Error) Error() string

Error returns the string error message.

func (Error) ErrorType Uses

func (e Error) ErrorType() string

ErrorType returns a short string representing the error type.

func (Error) HTTPErrorCode Uses

func (e Error) HTTPErrorCode() codes.Code

HTTPErrorCode returns an HTTP error code representing the error type.

Package error imports 1 packages (graph) and is imported by 5 packages. Updated 2019-10-02. Refresh now. Tools for package owners.