Documentation ¶
Index ¶
- type VaultCAS
- func (v *VaultCAS) CreateCertificate(req *apiv1.CreateCertificateRequest) (*apiv1.CreateCertificateResponse, error)
- func (v *VaultCAS) GetCertificateAuthority(*apiv1.GetCertificateAuthorityRequest) (*apiv1.GetCertificateAuthorityResponse, error)
- func (v *VaultCAS) RenewCertificate(*apiv1.RenewCertificateRequest) (*apiv1.RenewCertificateResponse, error)
- func (v *VaultCAS) RevokeCertificate(req *apiv1.RevokeCertificateRequest) (*apiv1.RevokeCertificateResponse, error)
- type VaultOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VaultCAS ¶
type VaultCAS struct {
// contains filtered or unexported fields
}
VaultCAS implements a Certificate Authority Service using Hashicorp Vault.
func (*VaultCAS) CreateCertificate ¶
func (v *VaultCAS) CreateCertificate(req *apiv1.CreateCertificateRequest) (*apiv1.CreateCertificateResponse, error)
CreateCertificate signs a new certificate using Hashicorp Vault.
func (*VaultCAS) GetCertificateAuthority ¶
func (v *VaultCAS) GetCertificateAuthority(*apiv1.GetCertificateAuthorityRequest) (*apiv1.GetCertificateAuthorityResponse, error)
GetCertificateAuthority returns the root certificate of the certificate authority using the configured fingerprint.
func (*VaultCAS) RenewCertificate ¶
func (v *VaultCAS) RenewCertificate(*apiv1.RenewCertificateRequest) (*apiv1.RenewCertificateResponse, error)
RenewCertificate will always return a non-implemented error as renewals are not supported yet.
func (*VaultCAS) RevokeCertificate ¶
func (v *VaultCAS) RevokeCertificate(req *apiv1.RevokeCertificateRequest) (*apiv1.RevokeCertificateResponse, error)
RevokeCertificate revokes a certificate by serial number.
type VaultOptions ¶
type VaultOptions struct { PKIMountPath string `json:"pkiMountPath,omitempty"` PKIRoleDefault string `json:"pkiRoleDefault,omitempty"` PKIRoleRSA string `json:"pkiRoleRSA,omitempty"` PKIRoleEC string `json:"pkiRoleEC,omitempty"` PKIRoleEd25519 string `json:"pkiRoleEd25519,omitempty"` AuthType string `json:"authType,omitempty"` AuthMountPath string `json:"authMountPath,omitempty"` Namespace string `json:"namespace,omitempty"` AuthOptions json.RawMessage `json:"authOptions,omitempty"` }
VaultOptions defines the configuration options added using the apiv1.Options.Config field.
Click to show internal directories.
Click to hide internal directories.