meshwatcher

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollection added in v0.2.5

func NewCollection(opts krt.OptionsBuilder, sources ...MeshConfigSource) krt.Singleton[MeshConfigResource]

func PrettyFormatOfMeshConfig added in v0.2.5

func PrettyFormatOfMeshConfig(meshConfig *meshconfig.MeshConfig) string

Types

type MeshConfigResource

type MeshConfigResource struct {
	*meshconfig.MeshConfig
}

MeshConfigResource holds the current MeshConfig state

func (MeshConfigResource) Equals

func (m MeshConfigResource) Equals(other MeshConfigResource) bool

func (MeshConfigResource) ResourceName

func (m MeshConfigResource) ResourceName() string

type MeshConfigSource added in v0.2.5

type MeshConfigSource = krt.Singleton[string]

func NewFileSource added in v0.2.5

func NewFileSource(fileWatcher filewatcher.FileWatcher, filename string, opts krt.OptionsBuilder) (MeshConfigSource, error)

type WatcherCollection added in v0.2.5

type WatcherCollection interface {
	mesh.Watcher
	krt.Singleton[MeshConfigResource]
}

func ConfigAdapter added in v0.2.5

func ConfigAdapter(configuration krt.Singleton[MeshConfigResource]) WatcherCollection

Jump to

Keyboard shortcuts

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