Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger struct {
// contains filtered or unexported fields
}
func (*Ledger) Register ¶
func (l *Ledger) Register() (<-chan ObjectStatus, observer.CancelFunc)
Register registers a new channel for observing the status of all objects. The channel will receive updates every watchIntervalSec seconds.
func (*Ledger) Watch ¶ added in v0.2.0
func (l *Ledger) Watch(kindNamespaceName k8s.KindNamespaceName)
Watch starts watching the object with the given kindNamespaceName. The status of the object will be sent to all registered channels every watchIntervalSec seconds.
type ObjectStatus ¶ added in v0.2.0
type ObjectStatus struct { KindNamespaceName k8s.KindNamespaceName `json:"kind_namespace_name"` Status Status `json:"status"` IsLocked bool `json:"is_locked"` }
Click to show internal directories.
Click to hide internal directories.