Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
Change is a single notification about a configuration entity change, addressed to the OnPremAIGateway identified by ParentNN.
type ChangeNotifier ¶
type ChangeNotifier struct {
// contains filtered or unexported fields
}
ChangeNotifier is responsible for notifying about changes in the AI Gateway configuration.
func (*ChangeNotifier) Close ¶
func (c *ChangeNotifier) Close()
Close closes the ChangeNotifier and releases its resources. It is safe to call multiple times. It only closes the channel once.
func (*ChangeNotifier) NotifyChange ¶
func (c *ChangeNotifier) NotifyChange( ctx context.Context, parent *types.NamespacedName, obj client.Object, )
NotifyChange sends a change notification for the given AI Gateway instance.
The notifier stores a snapshot of the object: the caller keeps owning (and mutating) the object afterwards. The generated configuration-entity reconcilers, for example, update the entity's status after notifying, and the status update's response decoding rewrites the object's fields, which would race with the consumer's reads if the object were shared.
func (*ChangeNotifier) NotifyChannel ¶
func (c *ChangeNotifier) NotifyChannel() <-chan Change
NotifyChannel returns a channel that receives change notifications.