Documentation
¶
Index ¶
- func ApplyMeshConfig(yaml string, defaultConfig *meshconfig.MeshConfig) (*meshconfig.MeshConfig, error)
- func ApplyMeshConfigDefaults(yaml string) (*meshconfig.MeshConfig, error)
- func DefaultMeshConfig() *meshconfig.MeshConfig
- func DefaultProxyConfig() *meshconfig.ProxyConfig
- func MergeProxyConfig(yaml string, proxyConfig *meshconfig.ProxyConfig) (*meshconfig.ProxyConfig, error)
- func ReadMeshConfig(filename string) (*meshconfig.MeshConfig, error)
- type Holder
- type Watcher
- type WatcherHandlerRegistration
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 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()
Click to show internal directories.
Click to hide internal directories.