Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PluginName defines name of the NSM Plugin. // Config file name is `PluginName + ".conf"` PluginName = "nsm-plugin" )
Variables ¶
View Source
var DefaultPlugin = *NewPlugin(WithNotifications())
DefaultPlugin is a default instance of NSMPlugin. Notifications enabled by default for the sake of CNF Provisioner.
Functions ¶
func ServiceLabelForNSMNotifs ¶
func ServiceLabelForNSMNotifs(groupName string) servicelabel.Option
Types ¶
type Deps ¶
type Deps struct { infra.PluginDeps KVScheduler kvs.KVScheduler NotifPublisher descriptor.NotificationPublisher // optional }
type NSMPlugin ¶
type NSMPlugin struct { Deps // contains filtered or unexported fields }
NSMPlugin allows integration with Network Service Mesh.
type Option ¶
type Option func(*NSMPlugin)
Option is a function that can be used in NewPlugin to customize Plugin.
func WithCustomizedNotifications ¶
func WithCustomizedNotifications(kvdb keyval.KvProtoPlugin, groupName string) Option
WithNotifications enables notifications with customized parameters.
func WithNotifications ¶
func WithNotifications() Option
WithNotifications enables notifications with default parameters (etcd DB, global group).
Directories ¶
Path | Synopsis |
---|---|
* Copyright (c) 2020 PANTHEON.tech s.r.o.
|
* Copyright (c) 2020 PANTHEON.tech s.r.o. |
Click to show internal directories.
Click to hide internal directories.