addoninstance

package
v1.13.6 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddonInstanceClient added in v1.5.9

type AddonInstanceClient interface {
	Get(ctx context.Context, name, namespace string) (*av1alpha1.AddonInstance, error)
	UpdateStatus(ctx context.Context, instance *av1alpha1.AddonInstance) error
}

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 Clock added in v1.5.4

type Clock interface {
	Now() time.Time
}

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) Reconcile added in v1.5.4

func (c *Controller) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

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
}

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 Phase added in v1.5.4

type Phase interface {
	Execute(ctx context.Context, req phase.Request) phase.Result
	fmt.Stringer
}

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) Execute added in v1.5.4

func (*PhaseCheckHeartbeat) String added in v1.5.4

func (p *PhaseCheckHeartbeat) String() string

type PhaseCheckHeartbeatConfig added in v1.5.4

type PhaseCheckHeartbeatConfig struct {
	Log                 logr.Logger
	Clock               Clock
	ThresholdMultiplier int64
}

func (*PhaseCheckHeartbeatConfig) Default added in v1.5.4

func (c *PhaseCheckHeartbeatConfig) Default()

func (*PhaseCheckHeartbeatConfig) Option added in v1.5.4

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

type WithLog struct{ Log logr.Logger }

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

type WithPollingInterval time.Duration

func (WithPollingInterval) ConfigureController added in v1.5.4

func (w WithPollingInterval) ConfigureController(c *ControllerConfig)

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)

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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