var ErrNotFound … type StateData … type StateKey … type CycleState … // NewCycleState initializes a new CycleState and returns its pointer. func NewCycleState() *CycleState { … } // ShouldRecordPluginMetrics returns whether metrics.PluginExecutionDuration metrics should be recorded. func (c *CycleState) ShouldRecordPluginMetrics() bool { … } // SetRecordPluginMetrics sets recordPluginMetrics to the given value. func (c *CycleState) SetRecordPluginMetrics(flag bool) { … } // Clone creates a copy of CycleState and returns its pointer. Clone returns // nil if the context being cloned is nil. func (c *CycleState) Clone() *CycleState { … } // Read retrieves data with the given "key" from CycleState. If the key is not // present, ErrNotFound is returned. // // See CycleState for notes on concurrency. func (c *CycleState) Read(key StateKey) (StateData, error) { … } // Write stores the given "val" in CycleState with the given "key". // // See CycleState for notes on concurrency. func (c *CycleState) Write(key StateKey, val StateData) { … } // Delete deletes data with the given key from CycleState. // // See CycleState for notes on concurrency. func (c *CycleState) Delete(key StateKey) { … }