Documentation
¶
Index ¶
Constants ¶
const ReasonOlderGatewayClassExists gwapiv1b1.GatewayClassConditionReason = "OlderGatewayClassExists"
Variables ¶
This section is empty.
Functions ¶
func SetGatewayClassAccepted ¶
func SetGatewayClassAccepted(gc *gwapiv1b1.GatewayClass, accepted bool) *gwapiv1b1.GatewayClass
SetGatewayClassAccepted inserts or updates the Accepted condition for the provided GatewayClass.
Types ¶
type MutatorFunc ¶
MutatorFunc is a function adaptor for Mutators.
type Update ¶
type Update struct {
NamespacedName types.NamespacedName
Resource client.Object
Mutator Mutator
}
Update contains an all the information needed to update an object's status. Send down a channel to the goroutine that actually writes the changes back.
type UpdateHandler ¶
type UpdateHandler struct {
// contains filtered or unexported fields
}
UpdateHandler holds the details required to actually write an Update back to the referenced object.
func NewUpdateHandler ¶
func NewUpdateHandler(log logr.Logger, client client.Client) *UpdateHandler
func (*UpdateHandler) NeedLeaderElection ¶
func (u *UpdateHandler) NeedLeaderElection() bool
func (*UpdateHandler) Start ¶
func (u *UpdateHandler) Start(ctx context.Context) error
Start runs the goroutine to perform status writes.
func (*UpdateHandler) Writer ¶
func (u *UpdateHandler) Writer() Updater
Writer retrieves the interface that should be used to write to the UpdateHandler.
type UpdateWriter ¶
type UpdateWriter struct {
// contains filtered or unexported fields
}
UpdateWriter takes status updates and sends these to the UpdateHandler via a channel.
func (*UpdateWriter) Send ¶
func (u *UpdateWriter) Send(update Update)
Send sends the given Update off to the update channel for writing by the UpdateHandler.