Documentation ¶
Index ¶
- Variables
- func ContainsItemID(want []*generic.Item_ID, have *generic.Item_ID) bool
- func EnabledGrpcMetrics()
- func HasCorrectLabels(want map[string]string, have Labels) bool
- func UnmarshalLazyValue(key string, lazy datasync.LazyValue) (proto.Message, error)
- type Deps
- type Dispatcher
- type KLStore
- type KVPairs
- type KVStore
- type KeyVal
- type Labels
- type Option
- type Plugin
- func (p *Plugin) AfterInit() (err error)
- func (p *Plugin) Close() (err error)
- func (p Plugin) GetStatus(key string) (*Status, error)
- func (p *Plugin) Init() (err error)
- func (p *Plugin) InitialSync() error
- func (p Plugin) ListData() KVPairs
- func (p Plugin) ListLabels(key string) Labels
- func (p Plugin) ListState() (KVPairs, error)
- func (p Plugin) PushData(ctx context.Context, kvPairs []KeyVal, keyLabels map[string]Labels) (results []Result, err error)
- type Result
- type Status
- type Store
Constants ¶
This section is empty.
Variables ¶
var DefaultPlugin = *NewPlugin()
DefaultPlugin is default instance of Plugin
var ( // EnableStatusPublishing enables status publishing. EnableStatusPublishing = os.Getenv("ENABLE_STATUS_PUBLISHING") != "" )
Functions ¶
func ContainsItemID ¶ added in v3.5.0
func EnabledGrpcMetrics ¶ added in v3.1.0
func EnabledGrpcMetrics()
func HasCorrectLabels ¶ added in v3.5.0
Types ¶
type Deps ¶
type Deps struct { infra.PluginDeps GRPC grpc.Server KVScheduler kvs.KVScheduler Watcher datasync.KeyValProtoWatcher StatusPublisher datasync.KeyProtoValWriter }
Deps represents dependencies for the plugin.
type Dispatcher ¶
type KLStore ¶ added in v3.5.0
type KLStore interface { ListLabels(key string) Labels AddLabel(key, lkey, lval string) HasLabel(key, lkey string) bool DeleteLabel(key, lkey string) ResetLabels(key string) }
KLStore describes an interface for key-label store used by dispatcher.
type KVStore ¶
type KVStore interface { ListAll() KVPairs List(dataSrc string) KVPairs Update(dataSrc, key string, val proto.Message) Delete(dataSrc, key string) Reset(dataSrc string) }
KVStore describes an interface for key-value store used by dispatcher.
type Labels ¶ added in v3.5.0
Label is string key-value pair associated with configuration item. Label key format guidelines: label key should be a lower-case alphanumeric string which may contain periods and hyphens (but it should not contain consecutive periods/hyphens and it should not start with period/hyphen). Labels for configuration items should be prefixed with the reverse DNS notation of a domain they originate from (with domain owner's permission) for example: com.example.foo-bar-label. The io.ligato.* and ligato.* prefixes are reserved by vpp-agent for internal use.
type Option ¶
type Option func(*Plugin)
Option is a function that acts on a Plugin to inject Dependencies or configuration
func UseReflection ¶ added in v3.1.0
type Plugin ¶
type Plugin struct { Deps // contains filtered or unexported fields }
Plugin implements sync service for GRPC.
func (*Plugin) InitialSync ¶
InitialSync will start initial synchronization.
func (Plugin) ListLabels ¶ added in v3.5.0
type Status ¶
type Status = kvscheduler.ValueStatus
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package contextdecorator handles insertions and extractions of orchestrator related data from context.
|
Package contextdecorator handles insertions and extractions of orchestrator related data from context. |