mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
- Move the copy/pasted code to store certificates into a common method within the PKI plugin
27 lines
479 B
Go
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)
|
|
}
|