mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 07:31:09 +02:00
* Move resolveIssuerCRLPath to PKI issuing package. * Move fetchCertBySerial to PKI issuing package. * Move fetchRevocationInfo to PKI revocation package. * Make associateRevokedCertWithIsssuer a method of RevocationInfo. * Move serialFromCert and normalizeSerial to PKI parsing package. * Move writeUnifiedRevocationEntry to PKI revocation package. * Run make fmt.
28 lines
556 B
Go
28 lines
556 B
Go
// Copyright (c) HashiCorp, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
package pki_backend
|
|
|
|
import (
|
|
log "github.com/hashicorp/go-hclog"
|
|
"github.com/hashicorp/vault/sdk/logical"
|
|
)
|
|
|
|
type SystemViewGetter interface {
|
|
System() logical.SystemView
|
|
}
|
|
|
|
type MountInfo interface {
|
|
BackendUUID() string
|
|
}
|
|
|
|
type Logger interface {
|
|
Logger() log.Logger
|
|
}
|
|
|
|
type CertificateCounter interface {
|
|
IsInitialized() bool
|
|
IncrementTotalCertificatesCount(certsCounted bool, newSerial string)
|
|
IncrementTotalRevokedCertificatesCount(certsCounted bool, newSerial string)
|
|
}
|