certs

package
v0.0.0-...-c03dbfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func BuildCertBundleURL(certID string) (*url.URL, error)

BuildCertBundleURL valid url for the certificate bundle

func BuildCertURL

func BuildCertURL(certID string) (*url.URL, error)

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

func NewService

func NewService() *restful.WebService

NewService create new certs service

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL