Documentation
¶
Overview ¶
Package certs implements certificate management
Index ¶
Constants ¶
const PKICACertificateHandlerAPIVersion = "v1"
PKICACertificateHandlerAPIVersion defines the version
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CertificateIssuer ¶
type CertificateIssuer = types.CertificateIssuer
CertificateIssuer is an alias for types.CertificateIssuer for backward compatibility
type CertificateRequest ¶
type CertificateRequest = types.CertificateRequest
CertificateRequest is an alias for types.CertificateRequest for backward compatibility
type CertificateResponse ¶
type CertificateResponse = types.CertificateResponse
CertificateResponse is an alias for types.CertificateResponse for backward compatibility
type Error ¶
type Error int
Error defines the error return codes
const ( ErrorNone Error = iota ErrorParseRequest ErrorBadAPIVersion ErrorBadOwnerInfo ErrorVerifyCertificateRequest ErrorGetCertificate ErrorEncryptCertificatePrivateKey ErrorMarshalJSON ErrorRequestCACertificate ErrorDecodeCACertificate ErrorBadPKIRequest ErrorEventLogParse ErrorEventLogVerification )
Error codes
type Options ¶
type Options struct {
Addr string
InsecureAddr string
DNSName string
CABaseDNS string
// contains filtered or unexported fields
}
Options defines options for the server
type Server ¶
type Server struct {
Options
// contains filtered or unexported fields
}
Server defines a server
func NewServerWithIssuer ¶
func NewServerWithIssuer(ctx context.Context, o Options, certIssuer CertificateIssuer) (*Server, error)
NewServerWithIssuer returns a server instance with the provided certificate issuer.
func (*Server) PKICACertificateHandler ¶
PKICACertificateHandler returns pkiCACertificateHandler
func (*Server) PKICloudCertificateHandler ¶
PKICloudCertificateHandler returns pkiCloudCertificateHandler