consul/testing/deployer/topology/naming_shim.go
R.B. Boyer 50b26aa56a
deployer: remove catalog/mesh v2 support (#21194)
- Low level plumbing for resources is still retained for now.
- Retain "Workload" terminology over "Service".
- Revert "Destination" terminology back to "Upstream".
- Remove TPROXY support as it only worked for v2.
2024-05-21 14:52:19 -05:00

44 lines
955 B
Go

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: BUSL-1.1
package topology
// Deprecated: SortedWorkloads
func (n *Node) SortedServices() []*Workload {
return n.SortedWorkloads()
}
// Deprecated: mapifyWorkloads
func mapifyServices(services []*Workload) map[ServiceID]*Workload {
return mapifyWorkloads(services)
}
// Deprecated: WorkloadByID
func (c *Cluster) ServiceByID(nid NodeID, sid ServiceID) *Workload {
return c.WorkloadByID(nid, sid)
}
// Deprecated: WorkloadsByID
func (c *Cluster) ServicesByID(sid ServiceID) []*Workload {
return c.WorkloadsByID(sid)
}
// Deprecated: WorkloadByID
func (n *Node) ServiceByID(sid ServiceID) *Workload {
return n.WorkloadByID(sid)
}
// Deprecated: Workload
type Service = Workload
// Deprecated: ID
type ServiceID = ID
// Deprecated: NewID
func NewServiceID(name, namespace, partition string) ID {
return NewID(name, namespace, partition)
}
// Deprecated:
type Destination = Upstream