etcd

package
v0.0.0-...-5e92bbc Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Name of plugin
	Name = "etcd"
	// Version of plugin
	Version = 1
	// Type of plugin
	Type = plugin.PublisherPluginType
)

Variables

This section is empty.

Functions

func Meta

func Meta() *plugin.PluginMeta

Meta returns meta data for testing

func NewEtcdClient

func NewEtcdClient(host string) (*etcdClient, error)

Config the go etcd API

Types

type Etcd

type Etcd struct{}

func (*Etcd) GetConfigPolicy

func (e *Etcd) GetConfigPolicy() (*cpolicy.ConfigPolicy, error)

GetConfigPolicy returns plugin mandatory fields as the config policy

func (*Etcd) Publish

func (e *Etcd) Publish(contentType string, content []byte, config map[string]ctypes.ConfigValue) error

Publish publishes metric data to etcd

Jump to

Keyboard shortcuts

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