Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddedState ¶
type AddedState interface { ExistsState // contains filtered or unexported methods }
type DeletedState ¶
type DeletedState interface { DoesNotExistState // contains filtered or unexported methods }
type DoesNotExistState ¶
type DoesNotExistState interface { State // contains filtered or unexported methods }
type ExistsState ¶
type ExistsState interface { State // contains filtered or unexported methods }
type Notifier ¶
type Notifier interface {
Notify(event ResourceEvent)
}
type NotifyFunc ¶
type NotifyFunc func(event ResourceEvent)
type Reconciler ¶
type ReconcilerChain ¶
type ReconcilerChain []Reconciler
type ReconcilerFunc ¶
type ResourceEvent ¶
type ResourceEvent interface { Type() ResourceEventType Resource() interface{} }
func NewResourceEvent ¶
func NewResourceEvent(eventType ResourceEventType, resource interface{}) ResourceEvent
type ResourceEventType ¶
type ResourceEventType string
ResourceEventType tells an operator what kind of event has occurred on a given resource.
const ( // ResourceAdded tells the operator that a given resources has been added. ResourceAdded ResourceEventType = "add" // ResourceUpdated tells the operator that a given resources has been updated. ResourceUpdated ResourceEventType = "update" // ResourceDeleted tells the operator that a given resources has been deleted. ResourceDeleted ResourceEventType = "delete" )
type SyncFunc ¶
type SyncFunc func(ctx context.Context, event ResourceEvent) error
SyncFunc syncs resource events.
type Syncer ¶
type Syncer interface {
Sync(ctx context.Context, event ResourceEvent) error
}
Syncer describes something that syncs resource events.
type UpdatedState ¶
type UpdatedState interface { ExistsState // contains filtered or unexported methods }
Click to show internal directories.
Click to hide internal directories.