etcdbk

package
v0.0.0-...-8d1852a Latest Latest
Warning

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

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

Documentation

Overview

Package etcdbk implements Etcd powered backend

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSON

func FromJSON(paramsJSON string) (backend.Backend, error)

FromJSON returns backend initialized from JSON-encoded string

func FromObject

func FromObject(in interface{}) (backend.Backend, error)

FromObject initialized the backend from backend-specific string

func New

func New(cfg Config) (backend.Backend, error)

New returns new instance of Etcd-powered backend

Types

type Config

type Config struct {
	Nodes       []string `json:"nodes"`
	Key         string   `json:"key"`
	TLSKeyFile  string   `json:"tls_key_file"`
	TLSCertFile string   `json:"tls_cert_file"`
	TLSCAFile   string   `json:"tls_ca_file"`
}

Config represents JSON config for etcd backend

func (*Config) Check

func (cfg *Config) Check() error

Check checks if all the parameters are valid

Jump to

Keyboard shortcuts

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