|
|
@ -1,6 +1,8 @@
|
|
|
|
package api
|
|
|
|
package api
|
|
|
|
|
|
|
|
|
|
|
|
import "encoding/json"
|
|
|
|
import (
|
|
|
|
|
|
|
|
"encoding/json"
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
// MeshConfigEntry manages the global configuration for all service mesh
|
|
|
|
// MeshConfigEntry manages the global configuration for all service mesh
|
|
|
|
// proxies.
|
|
|
|
// proxies.
|
|
|
@ -19,6 +21,8 @@ type MeshConfigEntry struct {
|
|
|
|
|
|
|
|
|
|
|
|
TLS *MeshTLSConfig `json:",omitempty"`
|
|
|
|
TLS *MeshTLSConfig `json:",omitempty"`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HTTP *MeshHTTPConfig `json:",omitempty"`
|
|
|
|
|
|
|
|
|
|
|
|
Meta map[string]string `json:",omitempty"`
|
|
|
|
Meta map[string]string `json:",omitempty"`
|
|
|
|
|
|
|
|
|
|
|
|
// CreateIndex is the Raft index this entry was created at. This is a
|
|
|
|
// CreateIndex is the Raft index this entry was created at. This is a
|
|
|
@ -46,6 +50,10 @@ type MeshDirectionalTLSConfig struct {
|
|
|
|
CipherSuites []string `json:",omitempty" alias:"cipher_suites"`
|
|
|
|
CipherSuites []string `json:",omitempty" alias:"cipher_suites"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type MeshHTTPConfig struct {
|
|
|
|
|
|
|
|
SanitizeXForwardedClientCert bool `alias:"sanitize_x_forwarded_client_cert"`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (e *MeshConfigEntry) GetKind() string { return MeshConfig }
|
|
|
|
func (e *MeshConfigEntry) GetKind() string { return MeshConfig }
|
|
|
|
func (e *MeshConfigEntry) GetName() string { return MeshConfigMesh }
|
|
|
|
func (e *MeshConfigEntry) GetName() string { return MeshConfigMesh }
|
|
|
|
func (e *MeshConfigEntry) GetPartition() string { return e.Partition }
|
|
|
|
func (e *MeshConfigEntry) GetPartition() string { return e.Partition }
|
|
|
|