mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
c652580b5b
This config entry is being renamed primarily because in k8s the name cluster could be confusing given that the config entry applies across federated datacenters. Additionally, this config entry will only apply to Consul as a service mesh, so the more generic "cluster" name is not needed.
40 lines
885 B
Go
40 lines
885 B
Go
package api
|
|
|
|
type MeshConfigEntry struct {
|
|
Kind string
|
|
Name string
|
|
Namespace string `json:",omitempty"`
|
|
TransparentProxy TransparentProxyMeshConfig `alias:"transparent_proxy"`
|
|
Meta map[string]string `json:",omitempty"`
|
|
CreateIndex uint64
|
|
ModifyIndex uint64
|
|
}
|
|
|
|
type TransparentProxyMeshConfig struct {
|
|
CatalogDestinationsOnly bool `alias:"catalog_destinations_only"`
|
|
}
|
|
|
|
func (e *MeshConfigEntry) GetKind() string {
|
|
return e.Kind
|
|
}
|
|
|
|
func (e *MeshConfigEntry) GetName() string {
|
|
return e.Name
|
|
}
|
|
|
|
func (e *MeshConfigEntry) GetNamespace() string {
|
|
return e.Namespace
|
|
}
|
|
|
|
func (e *MeshConfigEntry) GetMeta() map[string]string {
|
|
return e.Meta
|
|
}
|
|
|
|
func (e *MeshConfigEntry) GetCreateIndex() uint64 {
|
|
return e.CreateIndex
|
|
}
|
|
|
|
func (e *MeshConfigEntry) GetModifyIndex() uint64 {
|
|
return e.ModifyIndex
|
|
}
|