config

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2015 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckConfig added in v0.14.1

func CheckConfig(root string, k string, cb Backend) error

CheckConfig looks for a value at a keyspace path and returns an error if a value is not found

func Config

func Config(target string, action string, key []string, cb Backend) error

Config runs the config subcommand

Types

type Backend added in v1.9.0

type Backend interface {
	Get(string) (string, error)
	GetWithDefault(string, string) (string, error)
	Set(string, string) (string, error)
	SetWithTTL(string, string, uint64) (string, error)
	Delete(string) error
	GetRecursive(string) ([]*model.ConfigNode, error)
}

Backend is an interface for any sort of underlying key/value config store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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