client

package
v0.0.0-...-51358a5 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(from *Address, to *Address, recursive bool) error

Types

type ActionType

type ActionType int
const (
	ActionAdd ActionType = iota
	ActionModify
	ActionRemove
)

type Address

type Address struct {
	Addr       string
	Scheme     string
	Path       string
	DataCenter string
	ACLToken   string
}

type DiffItem

type DiffItem struct {
	FromPath  string
	ToPath    string
	Type      ActionType
	FromValue []byte
	ToValue   []byte
}

func Diff

func Diff(from *Address, to *Address, recursive bool) ([]*DiffItem, error)

type SyncPreviewItem

type SyncPreviewItem struct {
	Path  string
	Value []byte
	Type  ActionType
}

func SyncPreview

func SyncPreview(from *Address, to *Address, recursive bool) ([]*SyncPreviewItem, error)

Jump to

Keyboard shortcuts

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