istio

package
v0.0.0-...-2c1c132 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Store istiomodel.ConfigStore
	// contains filtered or unexported fields
}

Controller watches Istio config xDS server and notifies the listeners when config changes.

func NewController

func NewController(options *Options) *Controller

NewController creates a new Controller instance based on the provided arguments.

func (*Controller) RegisterEventHandler

func (c *Controller) RegisterEventHandler(handler func(*istioconfig.Config, *istioconfig.Config, istiomodel.Event))

RegisterEventHandler adds a handler to receive config update events for a configuration type

func (*Controller) Run

func (c *Controller) Run(stop <-chan struct{})

Run until a signal is received, this function won't block

type Options

type Options struct {
	PodName    string
	ClusterID  string
	NameSpace  string
	IstiodAddr string
}

Options for config controller

Jump to

Keyboard shortcuts

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