From 76c483c36fc9f3d46014baf6cbc35cad914cdbf9 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Tue, 12 Apr 2022 11:15:28 -0700 Subject: [PATCH] Add missing comments. --- cas/vaultcas/vaultcas.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cas/vaultcas/vaultcas.go b/cas/vaultcas/vaultcas.go index 151a25de..519412c9 100644 --- a/cas/vaultcas/vaultcas.go +++ b/cas/vaultcas/vaultcas.go @@ -25,6 +25,8 @@ func init() { }) } +// VaultOptions defines the configuration options added using the +// apiv1.Options.Config field. type VaultOptions struct { PKI string `json:"pki,omitempty"` PKIRoleDefault string `json:"pkiRoleDefault,omitempty"` @@ -128,6 +130,8 @@ func (v *VaultCAS) CreateCertificate(req *apiv1.CreateCertificateRequest) (*apiv }, nil } +// GetCertificateAuthority returns the root certificate of the certificate +// authority using the configured fingerprint. func (v *VaultCAS) GetCertificateAuthority(req *apiv1.GetCertificateAuthorityRequest) (*apiv1.GetCertificateAuthorityResponse, error) { secret, err := v.client.Logical().Read(v.config.PKI + "/cert/ca_chain") if err != nil {