Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHashMismatch = errors.New("checksum mismatch") ErrDeepEqualMismatch = errors.New("reflect.Deepequal mismatch") )
Functions ¶
Types ¶
type Checksumed ¶ added in v1.1.0
type Checksumed interface {
Sum() []byte
}
Checksumed 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.