consul

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

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