Steven Clark 8963ae495d
PKI: Refactor storage of certificates into a common method (#24415)
- Move the copy/pasted code to store certificates into a
   common method within the PKI plugin
2023-12-07 11:51:51 -05:00

27 lines
479 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)
}