Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHashMismatch = errors.New("hash mismatch") ErrDeepEqualMismatch = errors.New("reflect.Deepequal mismatch") )
Functions ¶
Types ¶
type Hasher ¶
type Hasher interface {
Hash() []byte
}
Hasher returns a unique Hash for an object for comparison
type State ¶
type State interface { Add(key string, v interface{}) Update(key string, v interface{}) Get(key string) interface{} Delete(key string) Walk(f StateWalkFunc) }
State represents the interface which Reconciler Accepts
type StateWalkFunc ¶
type StateWalkFunc func(key string, v interface{})
StateWalkFunc walks a state. Walk should be hierarchical to ensure no cascading updates occur.
Click to show internal directories.
Click to hide internal directories.