Documentation ¶
Index ¶
Constants ¶
View Source
const ( CERT = "CERTIFICATE" CSR = "CERTIFICATE REQUEST" PRIVATE = "PRIVATE KEY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadRequestError ¶
type BadRequestError struct{}
type CertDecodeError ¶
type CertDecodeError struct{}
func (*CertDecodeError) Error ¶
func (e *CertDecodeError) Error() string
func (*CertDecodeError) Message ¶
func (e *CertDecodeError) Message() *proto.ResponseMessage
func (*CertDecodeError) Status ¶
func (e *CertDecodeError) Status() int
type CertFormatError ¶
type CertFormatError struct{}
func (*CertFormatError) Error ¶
func (e *CertFormatError) Error() string
func (*CertFormatError) Message ¶
func (e *CertFormatError) Message() *proto.ResponseMessage
func (*CertFormatError) Status ¶
func (e *CertFormatError) Status() int
type CertInternalError ¶
type CertInternalError struct{}
func (*CertInternalError) Error ¶
func (e *CertInternalError) Error() string
func (*CertInternalError) Message ¶
func (e *CertInternalError) Message() *proto.ResponseMessage
func (*CertInternalError) Status ¶
func (e *CertInternalError) Status() int
type CertManager ¶
type CertManager struct {
// contains filtered or unexported fields
}
func NewCertManager ¶
func NewCertManager(logger *zap.SugaredLogger, options ...Option) (*CertManager, error)
func (*CertManager) Base58EncodeString ¶
func (m *CertManager) Base58EncodeString(data []byte) string
func (*CertManager) ResignCSR ¶
func (m *CertManager) ResignCSR(s string) ([]byte, proto.VerifyError)
func (*CertManager) SignCSR ¶
func (m *CertManager) SignCSR(s string) ([]byte, proto.VerifyError)
func (*CertManager) VerifyCert ¶
func (m *CertManager) VerifyCert(data []byte) (bool, proto.VerifyError)
type CertUnauthorizedError ¶
type CertUnauthorizedError struct{}
func (*CertUnauthorizedError) Error ¶
func (e *CertUnauthorizedError) Error() string
func (*CertUnauthorizedError) Message ¶
func (e *CertUnauthorizedError) Message() *proto.ResponseMessage
func (*CertUnauthorizedError) Status ¶
func (e *CertUnauthorizedError) Status() int
type FileDecodeError ¶
type FileDecodeError struct{}
func (*FileDecodeError) Error ¶
func (e *FileDecodeError) Error() string
type FileFormatError ¶
type FileFormatError struct{}
func (*FileFormatError) Error ¶
func (e *FileFormatError) Error() string
type FileInternalError ¶
type FileInternalError struct{}
func (*FileInternalError) Error ¶
func (e *FileInternalError) Error() string
type Option ¶
type Option func(mgr *CertManager) error
func WithCertificate ¶
func WithExpiration ¶
func WithPrivateKey ¶
func WithVersion ¶
type PubDecodeError ¶
type PubDecodeError struct{}
func (*PubDecodeError) Error ¶
func (e *PubDecodeError) Error() string
func (*PubDecodeError) Message ¶
func (e *PubDecodeError) Message() *proto.ResponseMessage
func (*PubDecodeError) Status ¶
func (e *PubDecodeError) Status() int
type PubFormatError ¶
type PubFormatError struct{}
func (*PubFormatError) Error ¶
func (e *PubFormatError) Error() string
func (*PubFormatError) Message ¶
func (e *PubFormatError) Message() *proto.ResponseMessage
func (*PubFormatError) Status ¶
func (e *PubFormatError) Status() int
type PubNotFoundError ¶
type PubNotFoundError struct{}
func (*PubNotFoundError) Error ¶
func (e *PubNotFoundError) Error() string
func (*PubNotFoundError) Message ¶
func (e *PubNotFoundError) Message() *proto.ResponseMessage
func (*PubNotFoundError) Status ¶
func (e *PubNotFoundError) Status() int
Click to show internal directories.
Click to hide internal directories.