2023-03-28 19:39:22 +01:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
2023-08-11 09:12:13 -04:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-03-28 19:39:22 +01:00
|
|
|
|
2018-04-03 20:46:07 -07:00
|
|
|
package cache
|
|
|
|
|
2018-04-16 12:06:08 +02:00
|
|
|
import (
|
2023-09-12 12:56:43 -07:00
|
|
|
"github.com/hashicorp/consul/agent/cacheshim"
|
2018-04-16 12:06:08 +02:00
|
|
|
)
|
|
|
|
|
2018-04-17 18:42:49 -05:00
|
|
|
// Request is a cacheable request.
|
2018-04-03 20:46:07 -07:00
|
|
|
//
|
|
|
|
// This interface is typically implemented by request structures in
|
|
|
|
// the agent/structs package.
|
2022-10-21 15:58:06 -04:00
|
|
|
//
|
2022-07-05 16:57:15 -05:00
|
|
|
//go:generate mockery --name Request --inpackage
|
2023-09-12 12:56:43 -07:00
|
|
|
type Request = cacheshim.Request
|
2018-04-08 15:08:34 +01:00
|
|
|
|
|
|
|
// RequestInfo represents cache information for a request. The caching
|
|
|
|
// framework uses this to control the behavior of caching and to determine
|
|
|
|
// cacheability.
|
peering: initial sync (#12842)
- Add endpoints related to peering: read, list, generate token, initiate peering
- Update node/service/check table indexing to account for peers
- Foundational changes for pushing service updates to a peer
- Plumb peer name through Health.ServiceNodes path
see: ENT-1765, ENT-1280, ENT-1283, ENT-1283, ENT-1756, ENT-1739, ENT-1750, ENT-1679,
ENT-1709, ENT-1704, ENT-1690, ENT-1689, ENT-1702, ENT-1701, ENT-1683, ENT-1663,
ENT-1650, ENT-1678, ENT-1628, ENT-1658, ENT-1640, ENT-1637, ENT-1597, ENT-1634,
ENT-1613, ENT-1616, ENT-1617, ENT-1591, ENT-1588, ENT-1596, ENT-1572, ENT-1555
Co-authored-by: R.B. Boyer <rb@hashicorp.com>
Co-authored-by: freddygv <freddy@hashicorp.com>
Co-authored-by: Chris S. Kim <ckim@hashicorp.com>
Co-authored-by: Evan Culver <eculver@hashicorp.com>
Co-authored-by: Nitya Dhanushkodi <nitya@hashicorp.com>
2022-04-21 17:34:40 -05:00
|
|
|
//
|
|
|
|
// TODO(peering): finish ensuring everything that sets a Datacenter sets or doesn't set PeerName.
|
|
|
|
// TODO(peering): also make sure the peer name is present in the cache key likely in lieu of the datacenter somehow.
|
2023-09-12 12:56:43 -07:00
|
|
|
type RequestInfo = cacheshim.RequestInfo
|