types

package
v0.0.0-...-758283c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const BootstrapVersionHeader = "dubbo-bootstrap-version"

Bootstrap is sent to a client (Dubbo DP) by putting YAML into a response body. This YAML has no information about Bootstrap version therefore we put extra header with a version Value of this header is then used in CLI arg --bootstrap-version when Envoy is run

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregate

type Aggregate struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	Port    uint32 `json:"port"`
	Path    string `json:"path"`
}

type BootstrapRequest

type BootstrapRequest struct {
	Mesh               string  `json:"mesh"`
	Name               string  `json:"name"`
	ProxyType          string  `json:"proxyType"`
	DataplaneToken     string  `json:"dataplaneToken,omitempty"`
	DataplaneTokenPath string  `json:"dataplaneTokenPath,omitempty"`
	DataplaneResource  string  `json:"dataplaneResource,omitempty"`
	Host               string  `json:"-"`
	Version            Version `json:"version"`
	// CaCert is a PEM-encoded CA cert that DP uses to verify CP
	CaCert              string            `json:"caCert"`
	DynamicMetadata     map[string]string `json:"dynamicMetadata"`
	DNSPort             uint32            `json:"dnsPort,omitempty"`
	EmptyDNSPort        uint32            `json:"emptyDnsPort,omitempty"`
	OperatingSystem     string            `json:"operatingSystem"`
	Features            []string          `json:"features"`
	Resources           ProxyResources    `json:"resources"`
	Workdir             string            `json:"workdir"`
	AccessLogSocketPath string            `json:"accessLogSocketPath"`
	MetricsResources    MetricsResources  `json:"metricsResources"`
}

type BootstrapResponse

type BootstrapResponse struct {
	Bootstrap                 []byte                    `json:"bootstrap"`
	DubboSidecarConfiguration DubboSidecarConfiguration `json:"dubboSidecarConfiguration"`
}

type BootstrapVersion

type BootstrapVersion string
const (
	BootstrapV3 BootstrapVersion = "3"
)

type DubboDpVersion

type DubboDpVersion struct {
	Version   string `json:"version"`
	GitTag    string `json:"gitTag"`
	GitCommit string `json:"gitCommit"`
	BuildDate string `json:"buildDate"`
}

type DubboSidecarConfiguration

type DubboSidecarConfiguration struct {
	Networking NetworkingConfiguration `json:"networking"`
	Metrics    MetricsConfiguration    `json:"metrics"`
}

type EnvoyVersion

type EnvoyVersion struct {
	Version           string `json:"version"`
	Build             string `json:"build"`
	DubboDpCompatible bool   `json:"dubboDpCompatible"`
}

type MetricsConfiguration

type MetricsConfiguration struct {
	Aggregate []Aggregate `json:"aggregate"`
}

type MetricsResources

type MetricsResources struct {
	SocketPath string `json:"socketPath"`
	CertPath   string `json:"certPath"`
	KeyPath    string `json:"keyPath"`
}

type NetworkingConfiguration

type NetworkingConfiguration struct {
	IsUsingTransparentProxy bool   `json:"isUsingTransparentProxy"`
	CorefileTemplate        []byte `json:"corefileTemplate"`
	Address                 string `json:"address"`
}

type ProxyResources

type ProxyResources struct {
	MaxHeapSizeBytes uint64 `json:"maxHeapSizeBytes"`
}

ProxyResources contains information about what resources this proxy has available

type Version

type Version struct {
	DubboDp DubboDpVersion `json:"dubboDp"`
	Envoy   EnvoyVersion   `json:"envoy"`
}

Jump to

Keyboard shortcuts

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