Documentation
¶
Overview ¶
Package state manages polyester states.
Index ¶
- type Entry
- type State
- func (s State) Append(next ...Entry) State
- func (s State) AppendKV(name string, val interface{}) (State, error)
- func (s State) Changed(other State) bool
- func (s State) Diff(w io.Writer, other State) error
- func (s State) Empty() bool
- func (s State) Map(fn func(e Entry) Entry) State
- func (s State) Source() State
- func (s State) Target() State
- func (s State) WriteFile(p string) error
- func (s State) WriteTo(w io.Writer) (int64, error)
- type States
- type StatesEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Name string `json:"name"` File *opfs.StateFileEntry `json:"file,omitempty"` KV map[string]interface{} `json:"kv,omitempty"` Target bool `json:"target,omitempty"` }
func (Entry) ChecksumOnly ¶
func (Entry) WithoutTimestamps ¶
type States ¶
type States struct {
States []StatesEntry `json:"states"`
}
type StatesEntry ¶
Click to show internal directories.
Click to hide internal directories.