request

package
v0.0.0-...-65cdad1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CCADB_CSV_FILENAME        = "AllCertificateRecordsCSVFormatv2"
	CCADB_RECORD_ROOT         = "Root Certificate"
	CCADB_RECORD_INTERMEDIATE = "Intermediate Certificate"
)
View Source
const (
	IDX_SHA256FINGERPRINT int = iota
	IDX_SUBJECTKEYIDENTIFIER
	IDX_CERTIFICATERECORDTYPE
	IDX_TLSCAPABLE
	IDX_TLSEVCAPABLE
	IDX_SMIMECAPABLE
	IDX_CODESIGNINGCAPABLE
	MAX_IDX
)
View Source
const (
	// POST (API) and GET (webpage).
	ENDPOINTSTRING_LINTCERT    = "lintcert"
	ENDPOINTSTRING_LINTTBSCERT = "linttbscert"
	ENDPOINTSTRING_LINTCRL     = "lintcrl"
	ENDPOINTSTRING_LINTTBSCRL  = "linttbscrl"
	ENDPOINTSTRING_LINTOCSP    = "lintocsp"
	ENDPOINTSTRING_LINTTBSOCSP = "linttbsocsp"

	// GET.
	ENDPOINTSTRING_FRONTPAGE = ""
	ENDPOINTSTRING_CSS       = "pkimetal.css"
	ENDPOINTSTRING_FAVICON   = "favicon.ico"
	ENDPOINTSTRING_MASCOT    = "mascot.jpg"
	ENDPOINTSTRING_LINTERS   = "linters"
	ENDPOINTSTRING_PROFILES  = "profiles"

	// GET (Monitoring).
	ENDPOINTSTRING_LIVEZ   = "livez"
	ENDPOINTSTRING_READYZ  = "readyz"
	ENDPOINTSTRING_METRICS = "metrics"
	ENDPOINTSTRING_BUILD   = "debug/build"
	ENDPOINTSTRING_CONFIG  = "debug/config"
)
View Source
const (
	INPUTSTRING_B64CERT    = "b64cert"
	INPUTSTRING_B64TBSCERT = "b64tbscert"
	INPUTSTRING_B64CRL     = "b64crl"
	INPUTSTRING_B64TBSCRL  = "b64tbscrl"
	INPUTSTRING_B64OCSP    = "b64ocsp"
	INPUTSTRING_B64TBSOCSP = "b64tbsocsp"
)

Variables

This section is empty.

Functions

func APIWebpage

func APIWebpage(fhctx *fasthttp.RequestCtx, endpoint string)

func CSS

func CSS(fhctx *fasthttp.RequestCtx)

func FrontPage

func FrontPage(fhctx *fasthttp.RequestCtx)

func Linters

func Linters(fhctx *fasthttp.RequestCtx)

func POST

func POST(fhctx *fasthttp.RequestCtx, path string) int

func Profiles

func Profiles(fhctx *fasthttp.RequestCtx)

Types

type BasicResponse

type BasicResponse struct {
	TBSResponseData    asn1.RawValue
	SignatureAlgorithm pkix.AlgorithmIdentifier
	Signature          asn1.BitString
}

type Endpoint

type Endpoint int
const (
	ENDPOINT_LINTCERT Endpoint = iota
	ENDPOINT_LINTTBSCERT
	ENDPOINT_LINTCRL
	ENDPOINT_LINTTBSCRL
	ENDPOINT_LINTOCSP
	ENDPOINT_LINTTBSOCSP
)

type LintResult

type LintResult struct {
	Linter   string
	Finding  string
	Field    string `json:"Field,omitempty"`
	Code     string `json:"Code,omitempty"`
	Severity string
}

type RequestInfo

type RequestInfo struct {
	// contains filtered or unexported fields
}

func (*RequestInfo) GetInput

func (ri *RequestInfo) GetInput(fhctx *fasthttp.RequestCtx) error

func (*RequestInfo) GetPOSTEndpoint

func (ri *RequestInfo) GetPOSTEndpoint(endpointString string) (ok bool)

func (*RequestInfo) GetProfile

func (ri *RequestInfo) GetProfile(profileName string) bool

type ResponseASN1

type ResponseASN1 struct {
	Status   asn1.Enumerated
	Response ResponseBytes `asn1:"explicit,tag:0,optional"`
}

type ResponseBytes

type ResponseBytes struct {
	ResponseType asn1.ObjectIdentifier
	Response     []byte
}

type ResponseStatus

type ResponseStatus int
const Success ResponseStatus = 0

Jump to

Keyboard shortcuts

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