envoy

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: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DpNotFoundErr = errors.New("Dataplane entity not found. If you are running on Universal please create a Dataplane entity on kuma-cp before starting kuma-dp or pass it to kuma-dp run --dataplane-file=/file. If you are running on Kubernetes, please check the kuma-cp logs to determine why the Dataplane entity could not be created by the automatic sidecar injection.")
)

Functions

func GenerateBootstrapFile

func GenerateBootstrapFile(cfg kuma_dp.DataplaneRuntime, config []byte) (string, error)

func InvalidRequestErr

func InvalidRequestErr(msg string) error

func IsInvalidRequestErr

func IsInvalidRequestErr(err error) bool

Types

type BootstrapConfigFactoryFunc

type BootstrapConfigFactoryFunc func(url string, cfg kuma_dp.Config, params BootstrapParams) ([]byte, types.BootstrapVersion, error)

func NewRemoteBootstrapGenerator

func NewRemoteBootstrapGenerator(client *http.Client) BootstrapConfigFactoryFunc

type BootstrapParams

type BootstrapParams struct {
	Dataplane        *rest.Resource
	BootstrapVersion types.BootstrapVersion
	DNSPort          uint32
	EmptyDNSPort     uint32
	EnvoyVersion     EnvoyVersion
	DynamicMetadata  map[string]string
}

type Envoy

type Envoy struct {
	// contains filtered or unexported fields
}

func New

func New(opts Opts) (*Envoy, error)

func (*Envoy) NeedLeaderElection

func (e *Envoy) NeedLeaderElection() bool

func (*Envoy) Start

func (e *Envoy) Start(stop <-chan struct{}) error

type EnvoyVersion

type EnvoyVersion struct {
	Build   string
	Version string
}

type Opts

type Opts struct {
	Config          kuma_dp.Config
	Generator       BootstrapConfigFactoryFunc
	Dataplane       *rest.Resource
	DynamicMetadata map[string]string
	DNSPort         uint32
	EmptyDNSPort    uint32
	Stdout          io.Writer
	Stderr          io.Writer
	Quit            chan struct{}
	LogLevel        pkg_log.LogLevel
}

Jump to

Keyboard shortcuts

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