dataplane

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

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 DNSServerConfig struct {
	BindAddress string `json:"bindAddress"`
	BindPort    int    `json:"bindPort"`
}

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 EnvoyConfig struct {
	ReadyBindAddr string `json:"readyBindAddress"`
	ReadyBindPort int    `json:"readyBindPort"`
}

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 LoginCredentialsConfig struct {
	AuthMethod  string            `json:"authMethod"`
	Namespace   string            `json:"namespace,omitempty"`
	Partition   string            `json:"partition,omitempty"`
	Datacenter  string            `json:"datacenter"`
	BearerToken string            `json:"bearerToken"`
	Meta        map[string]string `json:"meta"`
}

type ProxyConfig

type ProxyConfig struct {
	NodeName  string `json:"nodeName"`
	ID        string `json:"id"`
	Namespace string `json:"namespace"`
	Partition string `json:"partition"`
}

type TLSConfig

type TLSConfig struct {
	Disabled       bool   `json:"disabled"`
	GRPCCACertPath string `json:"caCertsPath,omitempty"`
	TLSServerName  string `json:"tlsServerName,omitempty"`
}

type XDSServerConfig

type XDSServerConfig struct {
	Address string `json:"bindAddress"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL