Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCertBundleURL(certID string) (*url.URL, error)
- func BuildCertURL(certID string) (*url.URL, error)
- func GetBundleCertificate(request *restful.Request, response *restful.Response)
- func GetCertificate(request *restful.Request, response *restful.Response)
- func NewService() *restful.WebService
Constants ¶
View Source
const ( // GetURL endpoint URL GetURL = "/{cert-id}" // GetBundleURL endpoint URL GetBundleURL = "/{cert-id}/bundle" // ServiceURL base endpoint URL ServiceURL = "/certs" )
View Source
const PantaACARoot = "pantaACARoot"
PantaACARoot certificate name
Variables ¶
View Source
var GetBachErrorCodes = &errorCodes{
DecodingCert: "005001",
ParseCertificate: "005002",
NotFound: "005404",
ACACertNotFound: "005003",
}
GetBachErrorCodes Posible validation error
View Source
var GetErrorCodes = &errorCodes{
DecodingCert: "004001",
ParseCertificate: "004002",
NotFound: "004404",
ACACertNotFound: "004003",
}
GetErrorCodes Posible validation error
Functions ¶
func BuildCertBundleURL ¶
BuildCertBundleURL valid url for the certificate bundle
func BuildCertURL ¶
BuildCertURL return a valid url for a certificate
func GetBundleCertificate ¶
func GetBundleCertificate(request *restful.Request, response *restful.Response)
GetBundleCertificate return a certificate from a given ID
func GetCertificate ¶
func GetCertificate(request *restful.Request, response *restful.Response)
GetCertificate return a certificate from a given ID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.