etcd_helper

package
v0.0.0-...-3e61cae Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Etcdreader

type Etcdreader struct {
	EtcdServiceURL string
}

Etcdreader ... Performs read operations on an Etcd database

func (Etcdreader) Get

func (o Etcdreader) Get(resourceKey string) (string, error)

Get ... Method to Get a single value for a key

func (Etcdreader) GetList

func (o Etcdreader) GetList(resourceKey string) ([]string, error)

GetList ... Method to Get a list of values for a key

func (Etcdreader) GetMap

func (o Etcdreader) GetMap(resourceKey string) (map[string]interface{}, error)

GetMap ... Method to Get a map for a key

type Etcdwriter

type Etcdwriter struct {
	EtcdServiceURL string
}

Etcdwriter ... Performs write operations on an Etcd database

func (Etcdwriter) Delete

func (o Etcdwriter) Delete(resourceKey, resourceValue string) error

Delete ... Method to Delete a key/val pair from a list of strings or a single string

func (Etcdwriter) Store

func (o Etcdwriter) Store(resourceKey, resourceData string) error

Store ... Method to Store a value for a key

func (Etcdwriter) StoreList

func (o Etcdwriter) StoreList(resourceKey string, dataList []string) error

StoreList ... Method to Store a list into a key

func (Etcdwriter) StoreMap

func (o Etcdwriter) StoreMap(resourceKey string, resourceData map[string]interface{}) error

StoreMap ... Method to Store a Map for a key in json format

Jump to

Keyboard shortcuts

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