types

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

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

Bootstrap is sent to a client (Kuma 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 BootstrapRequest

type BootstrapRequest struct {
	Mesh               string  `json:"mesh"`
	Name               string  `json:"name"`
	ProxyType          string  `json:"proxyType"`
	AdminPort          uint32  `json:"adminPort,omitempty"`
	DataplaneTokenPath string  `json:"dataplaneTokenPath,omitempty"`
	DataplaneToken     string  `json:"dataplaneToken,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"`
	// BootstrapVersion is an optional version to override the control plane's default setting
	BootstrapVersion BootstrapVersion `json:"bootstrapVersion"`
	DNSPort          uint32           `json:"dnsPort,omitempty"`
	EmptyDNSPort     uint32           `json:"emptyDnsPort,omitempty"`
}

type BootstrapVersion

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

type EnvoyVersion

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

type KumaDpVersion

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

type Version

type Version struct {
	KumaDp KumaDpVersion `json:"kumaDp"`
	Envoy  EnvoyVersion  `json:"envoy"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳