mesh

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMeshConfig added in v0.2.5

func ApplyMeshConfig(yaml string, defaultConfig *meshconfig.MeshConfig) (*meshconfig.MeshConfig, error)

func ApplyMeshConfigDefaults added in v0.2.5

func ApplyMeshConfigDefaults(yaml string) (*meshconfig.MeshConfig, error)

func DefaultMeshConfig added in v0.2.5

func DefaultMeshConfig() *meshconfig.MeshConfig

func DefaultProxyConfig added in v0.2.5

func DefaultProxyConfig() *meshconfig.ProxyConfig

func MergeProxyConfig added in v0.2.5

func MergeProxyConfig(yaml string, proxyConfig *meshconfig.ProxyConfig) (*meshconfig.ProxyConfig, error)

func ReadMeshConfig added in v0.2.5

func ReadMeshConfig(filename string) (*meshconfig.MeshConfig, error)

Types

type Holder

type Holder interface {
	Mesh() *v1alpha1.MeshConfig
}

Holder of a mesh configuration.

type Watcher

type Watcher interface {
	Holder

	// AddMeshHandler registers a callback handler for changes to the mesh config.
	AddMeshHandler(h func()) *WatcherHandlerRegistration

	// DeleteMeshHandler unregisters a callback handler when remote cluster is removed.
	DeleteMeshHandler(registration *WatcherHandlerRegistration)
}

Watcher is a Holder whose mesh config can be updated asynchronously.

type WatcherHandlerRegistration

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

WatcherHandlerRegistration will be returned to caller to remove the handler later.

func NewWatcherHandlerRegistration

func NewWatcherHandlerRegistration(f func()) *WatcherHandlerRegistration

func (*WatcherHandlerRegistration) Remove

func (r *WatcherHandlerRegistration) Remove()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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