Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsulConfig ¶
type ConsulConfig struct { Addresses string `json:"addresses"` GRPCPort int `json:"grpcPort"` SkipServerWatch bool `json:"serverWatchDisabled"` TLS *TLSConfig `json:"tls,omitempty"` Credentials *CredentialsConfig `json:"credentials,omitempty"` }
type CredentialsConfig ¶
type CredentialsConfig struct { CredentialType string `json:"type"` Login LoginCredentialsConfig `json:"login"` }
type DNSServerConfig ¶ added in v0.8.0
type DataplaneConfig ¶ added in v0.8.0
type DataplaneConfig struct { Consul ConsulConfig `json:"consul"` Proxy ProxyConfig `json:"proxy"` XDSServer XDSServerConfig `json:"xdsServer"` Envoy EnvoyConfig `json:"envoy"` Logging LoggingConfig `json:"logging"` DNSServer *DNSServerConfig `json:"dnsServer,omitempty"` }
type EnvoyConfig ¶
type GetDataplaneConfigJSONInput ¶
type GetDataplaneConfigJSONInput struct { // Registration details about the proxy service ProxyRegistration *api.CatalogRegistration // User provided information about the Consul servers ConsulServerConfig config.ConsulServers // Login credentials that will be passed on to the dataplane's // configuration. ConsulLoginCredentials *discovery.Credentials // Path of the CA cert file for Consul server's RPC interface CACertFile string // The HTTP health check port that indicates envoy's readiness ProxyHealthCheckPort int // The logLevel that will be used to configure dataplane's logger. LogLevel string // Whether Consul DNS is enabled in the mesh-task. If yes, dataplane // starts a local DNS server and transparently proxies it to Consul // server's DNS interface ConsulDNSEnabled bool }
GetDataplaneConfigJSONInputs are the inputs needed to generate a dataplane configuration JSON
func (*GetDataplaneConfigJSONInput) GetDataplaneConfigJSON ¶
func (i *GetDataplaneConfigJSONInput) GetDataplaneConfigJSON() ([]byte, error)
GetDataplaneConfigJSON returns back a configuration JSON which (after writing it to a shared volume) can be used to start consul-dataplane
type LoggingConfig ¶
type LoggingConfig struct {
LogLevel string `json:"logLevel"`
}
type LoginCredentialsConfig ¶ added in v0.8.0
type ProxyConfig ¶
type XDSServerConfig ¶
type XDSServerConfig struct {
Address string `json:"bindAddress"`
}
Click to show internal directories.
Click to hide internal directories.