vault/builtin/logical/pki/pki_backend/storage_context.go
Victor Rodriguez 67515c7e4a
Ongoing refactoring of PKI revocation code (#27427)
* 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.
2024-06-11 09:25:14 -04:00

25 lines
529 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package pki_backend
import (
"context"
"github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/builtin/logical/pki/managed_key"
"github.com/hashicorp/vault/sdk/logical"
)
type StorageContext interface {
GetContext() context.Context
GetStorage() logical.Storage
UseLegacyBundleCaStorage() bool
GetPkiManagedView() managed_key.PkiManagedKeyView
CrlBuilder() CrlBuilderType
GetCertificateCounter() CertificateCounter
Logger() hclog.Logger
}