Documentation ¶
Index ¶
- type AddonInstanceClient
- type AddonInstanceClientImpl
- type Clock
- type Controller
- type ControllerConfig
- type ControllerOption
- type DefaultClock
- type Phase
- type PhaseCheckHeartbeat
- type PhaseCheckHeartbeatConfig
- type PhaseCheckHeartbeatOption
- type WithClock
- type WithLog
- type WithPollingInterval
- type WithRecorder
- type WithSerialPhases
- type WithThresholdMultiplier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddonInstanceClient ¶ added in v1.5.9
type AddonInstanceClientImpl ¶ added in v1.5.9
type AddonInstanceClientImpl struct {
// contains filtered or unexported fields
}
func NewAddonInstanceClient ¶ added in v1.5.9
func NewAddonInstanceClient(client client.Client) *AddonInstanceClientImpl
func (*AddonInstanceClientImpl) Get ¶ added in v1.5.9
func (c *AddonInstanceClientImpl) Get(ctx context.Context, name, namespace string) (*av1alpha1.AddonInstance, error)
func (*AddonInstanceClientImpl) UpdateStatus ¶ added in v1.5.9
func (c *AddonInstanceClientImpl) UpdateStatus(ctx context.Context, instance *av1alpha1.AddonInstance) error
type Controller ¶ added in v1.5.4
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶ added in v1.5.4
func NewController(c client.Client, opts ...ControllerOption) *Controller
func (*Controller) SetupWithManager ¶ added in v1.5.4
func (r *Controller) SetupWithManager(mgr ctrl.Manager) error
type ControllerConfig ¶ added in v1.5.4
type ControllerConfig struct { Log logr.Logger PollingInterval time.Duration SerialPhases []Phase Recorder *metrics.Recorder }
func (*ControllerConfig) Default ¶ added in v1.5.4
func (c *ControllerConfig) Default()
func (*ControllerConfig) Option ¶ added in v1.5.4
func (c *ControllerConfig) Option(opts ...ControllerOption)
type ControllerOption ¶ added in v1.5.4
type ControllerOption interface {
ConfigureController(c *ControllerConfig)
}
type DefaultClock ¶ added in v1.5.4
type DefaultClock struct{}
func NewDefaultClock ¶ added in v1.5.4
func NewDefaultClock() DefaultClock
func (DefaultClock) Now ¶ added in v1.5.4
func (c DefaultClock) Now() time.Time
type PhaseCheckHeartbeat ¶ added in v1.5.4
type PhaseCheckHeartbeat struct {
// contains filtered or unexported fields
}
func NewPhaseCheckHeartbeat ¶ added in v1.5.4
func NewPhaseCheckHeartbeat(opts ...PhaseCheckHeartbeatOption) *PhaseCheckHeartbeat
func (*PhaseCheckHeartbeat) String ¶ added in v1.5.4
func (p *PhaseCheckHeartbeat) String() string
type PhaseCheckHeartbeatConfig ¶ added in v1.5.4
func (*PhaseCheckHeartbeatConfig) Default ¶ added in v1.5.4
func (c *PhaseCheckHeartbeatConfig) Default()
func (*PhaseCheckHeartbeatConfig) Option ¶ added in v1.5.4
func (c *PhaseCheckHeartbeatConfig) Option(opts ...PhaseCheckHeartbeatOption)
type PhaseCheckHeartbeatOption ¶ added in v1.5.4
type PhaseCheckHeartbeatOption interface {
ConfigurePhaseCheckHeartbeat(*PhaseCheckHeartbeatConfig)
}
type WithClock ¶ added in v1.5.4
type WithClock struct{ Clock Clock }
func (WithClock) ConfigurePhaseCheckHeartbeat ¶ added in v1.5.4
func (w WithClock) ConfigurePhaseCheckHeartbeat(c *PhaseCheckHeartbeatConfig)
type WithLog ¶ added in v1.5.4
func (WithLog) ConfigureController ¶ added in v1.5.4
func (w WithLog) ConfigureController(c *ControllerConfig)
func (WithLog) ConfigurePhaseCheckHeartbeat ¶ added in v1.5.4
func (w WithLog) ConfigurePhaseCheckHeartbeat(c *PhaseCheckHeartbeatConfig)
type WithPollingInterval ¶ added in v1.5.4
func (WithPollingInterval) ConfigureController ¶ added in v1.5.4
func (w WithPollingInterval) ConfigureController(c *ControllerConfig)
type WithRecorder ¶ added in v1.14.0
func (WithRecorder) ConfigureController ¶ added in v1.14.0
func (w WithRecorder) ConfigureController(c *ControllerConfig)
Configures the metrics recorder
type WithSerialPhases ¶ added in v1.5.4
type WithSerialPhases []Phase
func (WithSerialPhases) ConfigureController ¶ added in v1.5.4
func (w WithSerialPhases) ConfigureController(c *ControllerConfig)
type WithThresholdMultiplier ¶ added in v1.5.4
type WithThresholdMultiplier int64
func (WithThresholdMultiplier) ConfigurePhaseCheckHeartbeat ¶ added in v1.5.4
func (w WithThresholdMultiplier) ConfigurePhaseCheckHeartbeat(c *PhaseCheckHeartbeatConfig)
Click to show internal directories.
Click to hide internal directories.