Documentation ¶
Index ¶
- func Changed(ctx Context) bool
- func Commit(ctx Context) ([]*exec.Output, []error, int, int)
- func Validate(ctx Context) ([]*exec.Output, []error, bool)
- type CfgNode
- func (c *CfgNode) BeginEnd() bool
- func (c *CfgNode) Changed() bool
- func (c *CfgNode) Delete() ([]*exec.Output, []error, bool)
- func (c *CfgNode) DeleteChild(ch *CfgNode)
- func (c *CfgNode) DeleteLeaf() ([]*exec.Output, []error, bool)
- func (c *CfgNode) DeleteList() ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecActs(acts []string, action string) ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecBegin() ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecCreate() ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecDelete() ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecEnd() ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecRegisterDefer() ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecUpdate() ([]*exec.Output, []error, bool)
- func (c *CfgNode) ExecValidate() ([]*exec.Output, []error, bool)
- func (c *CfgNode) GetAddedValues() []string
- func (c *CfgNode) GetDeletedValues() []string
- func (c *CfgNode) GetValues() []string
- func (c *CfgNode) IsIgnore() bool
- func (c *CfgNode) IsLeaf() bool
- func (c *CfgNode) IsLeafList() bool
- func (c *CfgNode) IsLeafValue() bool
- func (c *CfgNode) IsList() bool
- func (c *CfgNode) IsListEntry() bool
- func (c *CfgNode) PostOrder() []*CfgNode
- func (c *CfgNode) PostOrderFilterBE() []*CfgNode
- func (c *CfgNode) PreOrder() []*CfgNode
- func (c *CfgNode) PreOrderFilterBE() []*CfgNode
- func (c *CfgNode) SetIgnore(i bool)
- func (c *CfgNode) SetSubtreeChanged()
- func (c *CfgNode) Update() ([]*exec.Output, []error, bool)
- func (c *CfgNode) UpdateLeaf() ([]*exec.Output, []error, bool)
- func (c *CfgNode) UpdateLeafList() ([]*exec.Output, []error, bool)
- func (c *CfgNode) UpdateList() ([]*exec.Output, []error, bool)
- func (c *CfgNode) Validate(compMgr schema.ComponentManager) ([]*exec.Output, []error, bool)
- func (c *CfgNode) ValidateExec() ([]*exec.Output, []error, bool)
- type ComponentContext
- type Context
- type EffectiveDatabase
- type MaxHeap
- type MinHeap
- type PrioNode
- type PrioNodes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CfgNode ¶
type CfgNode struct { *diff.Node Path []string Parent *CfgNode CfgChildren []*CfgNode SubChanged bool // contains filtered or unexported fields }
func (*CfgNode) DeleteChild ¶
func (*CfgNode) ExecRegisterDefer ¶
func (*CfgNode) GetAddedValues ¶
func (*CfgNode) GetDeletedValues ¶
func (*CfgNode) IsIgnore ¶
Ignore interfaces are for detecting descendants added to the commit tree. These descendants are added to restore running action scripts on list key nodes which existing users depend on.
Yes, this is a cludge.
func (*CfgNode) IsLeafList ¶
func (*CfgNode) IsLeafValue ¶
func (*CfgNode) IsListEntry ¶
func (*CfgNode) PostOrderFilterBE ¶
func (*CfgNode) PreOrderFilterBE ¶
func (*CfgNode) SetSubtreeChanged ¶
func (c *CfgNode) SetSubtreeChanged()
type ComponentContext ¶
type ComponentContext interface {
CompMgr() schema.ComponentManager
}
type Context ¶
type Context interface { Log(...interface{}) LogError(...interface{}) LogCommitMsg(string) LogCommitTime(string, time.Time) LogAudit(string) Debug() bool MustDebugThreshold() int Sid() string Uid() uint32 Running() *data.Node Candidate() *data.Node Schema() schema.Node RunDeferred() bool Effective() EffectiveDatabase }
type EffectiveDatabase ¶
type PrioNode ¶
func (*PrioNode) RunDeleteActions ¶
func (*PrioNode) RunUpdateActions ¶
func (*PrioNode) SetChanged ¶
func (pnode *PrioNode) SetChanged()
Click to show internal directories.
Click to hide internal directories.