etcd

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

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 						  /namespace/appName/type/configID/v1/
	VersionKeyFormat string = "/%s/%s/%s/%s/%s"
	//								/namespace/appName/type/configID
	ConfigurationKeyFormat string = "/%s/%s/%s/%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ETCDRepo

type ETCDRepo struct {
	Client *clientv3.Client
	Logger *zap.Logger
}

func New

func New(log *zap.Logger) (repo *ETCDRepo, err error)

func (*ETCDRepo) CreateNewVersion

func (etcd *ETCDRepo) CreateNewVersion(version model.Version) (saved model.Version, err error)

func (*ETCDRepo) GetPreviousVersions

func (etcd *ETCDRepo) GetPreviousVersions(version model.Version) ([]model.Version, error)

func (*ETCDRepo) ListVersions

func (etcd *ETCDRepo) ListVersions(input model.ListRequest) (results *arraylist.List, err error)

Jump to

Keyboard shortcuts

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