consul

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultIgnoreVal = "_ignore"

DefaultIgnoreVal is the default value that need to be set for a key to be ignored.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is an implementation of the storage interface that stores in Consul KV.

func New

func New(addr string) (*Storage, error)

New returns new consul storage.

func (Storage) Diff

func (Storage) Diff(cs casper.Changes, pretty bool) string

Diff returns the visual representation of the changes.

func (Storage) GetChanges

func (s Storage) GetChanges(config []byte, format, key string) (casper.Changes, error)

GetChanges returns changes between the config and the Storage content.

func (Storage) Push

func (s Storage) Push(cs casper.Changes) error

Push changes to the storage.

func (Storage) String

func (s Storage) String(format string) (string, error)

Jump to

Keyboard shortcuts

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