client

package
v1.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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

type SendPulseOption

type SendPulseOption interface {
	ConfigureSendPulse(*sendPulseConfig)
}

type WithConditions

type WithConditions []metav1.Condition

WithConditions applies the given conditions.

func (WithConditions) ConfigureSendPulse

func (w WithConditions) ConfigureSendPulse(c *sendPulseConfig)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL