vault/sdk/logical
Vault Automation 7b433e64ba
Refactor CertificateCounter.IncrementeCount to use a param object. (#12172) (#12271)
* Refactor CertificateCounter.IncrementeCount to use a param object.

In preparation to start collecting more information, refactor the
CertificateCounter to take a parameter object which can be later gain more
fields.

* Rework CertificateCounter to use a fluent interface.

Rename method IncrementCount to AddCount.

Remove method AddIssuedCertificate.

Add method Incrementer, which returns an implementation of the new
CertCountIncrementer.

* Add method CertCountIncrement.Add.

* Refactor PkiCertificateCountConsumer to take a CertCountIncrement.

* Fix TestPkiCertificateCountManager_IncrementAndConsume.

* Rename type CertCountIncrement to CertCount.

* Refactor ReadStoredCounts to return a CertCount value.

Co-authored-by: Victor Rodriguez Rizo <vrizo@hashicorp.com>
2026-02-10 11:55:10 -05:00
..
acme_billing.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
audit.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
audit_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
auth.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
billing_system_view.go Backport Vault 42177 Add Backend Field into ce/main (#12152) 2026-02-03 22:48:12 +00:00
certificate_counter.go Refactor CertificateCounter.IncrementeCount to use a param object. (#12172) (#12271) 2026-02-10 11:55:10 -05:00
clienttokensource_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
connection.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
controlgroup.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
error.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
event.pb.go events: send events from primary to secondary clusters (#8214) (#11451) 2025-12-18 10:56:55 -08:00
event.proto events: send events from primary to secondary clusters (#8214) (#11451) 2025-12-18 10:56:55 -08:00
events.go events: send events from primary to secondary clusters (#8214) (#11451) 2025-12-18 10:56:55 -08:00
events_mock.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
events_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
identity.pb.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
identity.proto license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
keyusage_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
lease.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
lease_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
logical.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
logical_storage.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
managed_key.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
observation.pb.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
observation.proto license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
observations.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
pki_cert_count_system_view.go Refactor CertificateCounter.IncrementeCount to use a param object. (#12172) (#12271) 2026-02-10 11:55:10 -05:00
plugin.pb.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
plugin.proto license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
request.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
request_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
response.go Add the ability for a plugin to specify extra fields for auditing purposes (#11018) (#12167) 2026-02-04 15:41:54 +00:00
response_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
response_util.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
response_util_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
secret.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
snapshot_storage.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
snapshot_storage_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
storage.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
storage_inmem.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
storage_inmem_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
storage_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
storage_view.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
system_view.go Backport Vault 42177 Add Backend Field into ce/main (#12152) 2026-02-03 22:48:12 +00:00
system_view_stubs_oss.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
testing.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
token.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
token_test.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
tokentype_enumer.go Use enumer to generate String() methods for most enums (#25705) 2024-04-17 11:14:14 -07:00
translate_response.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
version.pb.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
version.proto license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
version_grpc.pb.go license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00