Documentation ¶
Overview ¶
Package certmodels provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.0.0 DO NOT EDIT.
Index ¶
- func SanitizeDNSNames(dnsNames []string) []string
- func SanitizeEmailAddresses(emailAddresses []string) []string
- func SanitizeIpAddresses(ips []net.IP) []net.IP
- type Certificate
- type CertificateExternalIssuer
- type CertificateExternalIssuerAcme
- type CertificateExternalIssuerFields
- type CertificateExternalIssuerResponse
- type CertificateFields
- type CertificateFlag
- type CertificatePendingAcme
- type CertificatePendingAcmeAuthorization
- type CertificatePendingAcmeChallenge
- type CertificatePolicy
- type CertificatePolicyFields
- type CertificatePolicyParameters
- type CertificatePolicyResponse
- type CertificateRef
- type CertificateRefFields
- type CertificateRefsResponse
- type CertificateResponse
- type CertificateSecretRequest
- type CertificateSecretResult
- type CertificateStatus
- type CertificateSubject
- type EnrollCertificateRequest
- type ExchangePKCS12Request
- type ExchangePKCS12Result
- type SubjectAlternativeNames
- type UpdatePendingCertificateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SanitizeDNSNames ¶
func SanitizeEmailAddresses ¶
Types ¶
type Certificate ¶
type Certificate = certificateComposed
Certificate defines model for Certificate.
type CertificateExternalIssuer ¶
type CertificateExternalIssuer = certificateExternalIssuerComposed
CertificateExternalIssuer defines model for CertificateExternalIssuer.
type CertificateExternalIssuerAcme ¶
type CertificateExternalIssuerAcme struct { AccountKeyID string `json:"accountKeyId"` AccountURL string `json:"accountUrl"` AzureDNSZoneResourceID string `json:"azureDnsZoneResourceId"` Contacts []string `json:"contacts"` DirectoryURL string `json:"directoryUrl"` }
CertificateExternalIssuerAcme defines model for CertificateExternalIssuerAcme.
type CertificateExternalIssuerFields ¶
type CertificateExternalIssuerFields struct {
Acme *CertificateExternalIssuerAcme `json:"acme,omitempty"`
}
CertificateExternalIssuerFields defines model for CertificateExternalIssuerFields.
type CertificateExternalIssuerResponse ¶
type CertificateExternalIssuerResponse = CertificateExternalIssuer
CertificateExternalIssuerResponse defines model for CertificateExternalIssuerResponse.
type CertificateFields ¶
type CertificateFields struct { // Cid Key Vault certificate ID KeyVaultCertificateID string `json:"cid,omitempty"` Flags []CertificateFlag `json:"flags,omitempty"` Identifier string `json:"identifier"` IssuerIdentifier string `json:"issuerIdentifier"` Jwk *externalRef1.JsonWebKey `json:"jwk,omitempty"` Nbf externalRef0.NumericDate `json:"nbf"` PendingAcme *CertificatePendingAcme `json:"pendingAcme,omitempty"` SerialNumber string `json:"serialNumber"` // Sid Key Vault Secret ID KeyVaultSecretID string `json:"sid,omitempty"` Subject string `json:"subject"` SubjectAlternativeNames *SubjectAlternativeNames `json:"subjectAlternativeNames,omitempty"` }
CertificateFields defines model for CertificateFields.
type CertificateFlag ¶
type CertificateFlag string
CertificateFlag defines model for CertificateFlag.
const ( CertificateFlagClientAuth CertificateFlag = "clientAuth" CertificateFlagServerAuth CertificateFlag = "serverAuth" )
Defines values for CertificateFlag.
type CertificatePendingAcme ¶
type CertificatePendingAcme struct {
Authorizations []CertificatePendingAcmeAuthorization `json:"authorizations,omitempty"`
}
CertificatePendingAcme defines model for CertificatePendingAcme.
type CertificatePendingAcmeAuthorization ¶
type CertificatePendingAcmeAuthorization struct { Challenges []CertificatePendingAcmeChallenge `json:"challenges,omitempty"` Status string `json:"status"` // Url URL to the authorization URL string `json:"url"` }
CertificatePendingAcmeAuthorization defines model for CertificatePendingAcmeAuthorization.
type CertificatePendingAcmeChallenge ¶
type CertificatePendingAcmeChallenge struct { DNSRecord string `json:"dnsRecord,omitempty"` Type string `json:"type"` // Url URL to the challenge URL string `json:"url"` }
CertificatePendingAcmeChallenge defines model for CertificatePendingAcmeChallenge.
type CertificatePolicy ¶
type CertificatePolicy = certificatePolicyComposed
CertificatePolicy defines model for CertificatePolicy.
type CertificatePolicyFields ¶
type CertificatePolicyFields struct { AllowEnroll bool `json:"allowEnroll"` AllowGenerate bool `json:"allowGenerate"` ExpiryTime string `json:"expiryTime"` Flags []CertificateFlag `json:"flags,omitempty"` // IssuerPolicyIdentifier Policy identififier of parent issuer IssuerPolicyIdentifier string `json:"issuerPolicyIdentifier"` // KeySpec these attributes should mostly confirm to JWK (RFC7517) KeySpec externalRef1.JsonWebKeySpec `json:"keySpec"` Subject CertificateSubject `json:"subject"` SubjectAlternativeNames *SubjectAlternativeNames `json:"subjectAlternativeNames,omitempty"` }
CertificatePolicyFields defines model for CertificatePolicyFields.
type CertificatePolicyParameters ¶
type CertificatePolicyParameters struct { AllowEnroll *bool `json:"allowEnroll,omitempty"` AllowGenerate *bool `json:"allowGenerate,omitempty"` DisplayName string `json:"displayName,omitempty"` ExpiryTime string `json:"expiryTime,omitempty"` Flags []CertificateFlag `json:"flags,omitempty"` IssuerPolicyIdentifier string `json:"issuerPolicyIdentifier,omitempty"` // KeySpec these attributes should mostly confirm to JWK (RFC7517) KeySpec *externalRef1.JsonWebKeySpec `json:"keySpec,omitempty"` Subject CertificateSubject `json:"subject"` SubjectAlternativeNames *SubjectAlternativeNames `json:"subjectAlternativeNames,omitempty"` }
CertificatePolicyParameters defines model for CertificatePolicyParameters.
type CertificatePolicyResponse ¶
type CertificatePolicyResponse = CertificatePolicy
CertificatePolicyResponse defines model for CertificatePolicyResponse.
type CertificateRef ¶
type CertificateRef = certificateRefComposed
CertificateRef defines model for CertificateRef.
type CertificateRefFields ¶
type CertificateRefFields struct { Exp externalRef0.NumericDate `json:"exp"` Iat *externalRef0.NumericDate `json:"iat,omitempty"` PolicyIdentifier string `json:"policyIdentifier"` Status CertificateStatus `json:"status"` // Thumbprint Hex encoded certificate thumbprint Thumbprint string `json:"thumbprint"` }
CertificateRefFields defines model for CertificateRefFields.
type CertificateRefsResponse ¶
type CertificateRefsResponse = []CertificateRef
CertificateRefsResponse defines model for CertificateRefsResponse.
type CertificateResponse ¶
type CertificateResponse = Certificate
CertificateResponse defines model for CertificateResponse.
type CertificateSecretRequest ¶
type CertificateSecretRequest struct {
Jwk externalRef1.JsonWebKey `json:"jwk"`
}
CertificateSecretRequest defines model for CertificateSecretRequest.
type CertificateSecretResult ¶
type CertificateSecretResult struct { // Payload JWE encrypted certificate in PEM format Payload string `json:"payload"` }
CertificateSecretResult defines model for CertificateSecretResult.
type CertificateStatus ¶
type CertificateStatus string
CertificateStatus defines model for CertificateStatus.
const ( CertificateStatusDeactivated CertificateStatus = "deactivated" CertificateStatusIssued CertificateStatus = "issued" CertificateStatusPending CertificateStatus = "pending" CertificateStatusPendingAuthorization CertificateStatus = "pending-authorization" CertificateStatusRevoked CertificateStatus = "revoked" CertificateStatusUnverified CertificateStatus = "unverified" )
Defines values for CertificateStatus.
type CertificateSubject ¶
type CertificateSubject struct {
CommonName string `json:"cn"`
}
CertificateSubject defines model for CertificateSubject.
func (*CertificateSubject) String ¶
func (cs *CertificateSubject) String() string
func (*CertificateSubject) ToPkixName ¶
func (cs *CertificateSubject) ToPkixName() pkix.Name
type EnrollCertificateRequest ¶
type EnrollCertificateRequest struct {
PublicKey externalRef1.JsonWebKey `json:"publicKey"`
}
EnrollCertificateRequest defines model for EnrollCertificateRequest.
type ExchangePKCS12Request ¶
type ExchangePKCS12Request struct { // Legacy Use legacy PKCS12 cipher Legacy *bool `json:"legacy,omitempty"` // PasswordProtected Encrypt the PKCS12 file with a generated password PasswordProtected bool `json:"passwordProtected"` // Payload JWE encrypted private key in JWK Payload string `json:"payload"` }
ExchangePKCS12Request defines model for ExchangePKCS12Request.
type ExchangePKCS12Result ¶
type ExchangePKCS12Result struct { // Password Password used to encrypt the PKCS12 file Password string `json:"password"` // Payload JWE encrypted PKCS12 file, encrypted with the symmetric key from the request Payload string `json:"payload"` }
ExchangePKCS12Result defines model for ExchangePKCS12Result.
type SubjectAlternativeNames ¶
type SubjectAlternativeNames struct { DNSNames []string `json:"dnsNames,omitempty"` Emails []string `json:"emails,omitempty"` IPAddresses []net.IP `json:"ipAddresses,omitempty"` }
SubjectAlternativeNames defines model for SubjectAlternativeNames.
func (*SubjectAlternativeNames) Digest ¶
func (sans *SubjectAlternativeNames) Digest(w io.Writer)
func (*SubjectAlternativeNames) Sanitize ¶
func (sans *SubjectAlternativeNames) Sanitize() *SubjectAlternativeNames
type UpdatePendingCertificateRequest ¶
type UpdatePendingCertificateRequest struct { AcmeAcceptChallenge string `json:"acmeAcceptChallengeUrl,omitempty"` AcmeOrderCertificate *bool `json:"acmeOrderCertificate,omitempty"` }
UpdatePendingCertificateRequest defines model for UpdatePendingCertificateRequest.