Documentation ¶
Index ¶
- func NewAddonInstanceConditionDegraded(status metav1.ConditionStatus, reason, msg string) metav1.Condition
- func NewAddonInstanceConditionInstalled(status metav1.ConditionStatus, reason av1alpha1.AddonInstanceInstalledReason, ...) metav1.Condition
- type AddonInstanceClient
- type AddonInstanceClientImpl
- type SendPulseOption
- type WithConditions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddonInstanceConditionDegraded ¶
func NewAddonInstanceConditionDegraded(status metav1.ConditionStatus, reason, msg string) metav1.Condition
NewAddonInstanceConditionDegraded returns an AddonInstanceDegraded status condition with the given status, reason, and message.
func NewAddonInstanceConditionInstalled ¶
func NewAddonInstanceConditionInstalled(status metav1.ConditionStatus, reason av1alpha1.AddonInstanceInstalledReason, msg string) metav1.Condition
NewAddonInstanceConditionInstalled returns an AddonInstanceInstalled status condition with the given status, reason, and message.
Types ¶
type AddonInstanceClient ¶
type AddonInstanceClient interface { // SendPulse updates the LastHeartbeatTime for the AddonInstance // and applies optional conditions if provided. SendPulse(ctx context.Context, instance av1alpha1.AddonInstance, opts ...SendPulseOption) error }
AddonInstanceClient provides methods for interacting with AddonInstance resources.
type AddonInstanceClientImpl ¶
type AddonInstanceClientImpl struct {
// contains filtered or unexported fields
}
func NewAddonInstanceClient ¶
func NewAddonInstanceClient(client client.Client) *AddonInstanceClientImpl
NewAddonInstanceClient returns a configured AddonInstanceClient implementation using the given client instance as a base.
func (*AddonInstanceClientImpl) SendPulse ¶
func (c *AddonInstanceClientImpl) SendPulse(ctx context.Context, instance av1alpha1.AddonInstance, opts ...SendPulseOption) error
type SendPulseOption ¶
type SendPulseOption interface {
ConfigureSendPulse(*sendPulseConfig)
}
type WithConditions ¶
WithConditions applies the given conditions.
func (WithConditions) ConfigureSendPulse ¶
func (w WithConditions) ConfigureSendPulse(c *sendPulseConfig)
Click to show internal directories.
Click to hide internal directories.