controllers

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package controllers implements common controllers for the infra providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderHealthStatusController added in v0.46.0

type ProviderHealthStatusController struct {
	// contains filtered or unexported fields
}

ProviderHealthStatusController reports infra provider health status.

func NewProviderHealthStatusController added in v0.46.0

func NewProviderHealthStatusController(providerID string, options ProviderHealthStatusOptions) (*ProviderHealthStatusController, error)

NewProviderHealthStatusController creates a new provider health status controller.

func (*ProviderHealthStatusController) Inputs added in v0.46.0

Inputs implements controller.Controller interface.

func (*ProviderHealthStatusController) Name added in v0.46.0

Name implements controller.Controller interface.

func (*ProviderHealthStatusController) Outputs added in v0.46.0

Outputs implements controller.Controller interface.

func (*ProviderHealthStatusController) Run added in v0.46.0

Run implements controller.Controller interface.

type ProviderHealthStatusOptions added in v0.46.0

type ProviderHealthStatusOptions struct {
	HealthCheckFunc func(ctx context.Context) error
	Interval        time.Duration
}

ProviderHealthStatusOptions defines options for the provider health status controller.

type ProvisionController

type ProvisionController[T generic.ResourceWithRD] struct {
	generic.NamedController
	// contains filtered or unexported fields
}

ProvisionController is the generic controller that operates the Provisioner.

func NewProvisionController

func NewProvisionController[T generic.ResourceWithRD](providerID string, provisioner provision.Provisioner[T], concurrency uint,
	imageFactory provision.FactoryClient,
) *ProvisionController[T]

NewProvisionController creates new ProvisionController.

func (*ProvisionController[T]) MapInput

MapInput implements controller.QController interface.

func (*ProvisionController[T]) Reconcile

func (ctrl *ProvisionController[T]) Reconcile(ctx context.Context,
	logger *zap.Logger, r controller.QRuntime, ptr resource.Pointer,
) error

Reconcile implements controller.QController interface.

func (*ProvisionController[T]) Settings

func (ctrl *ProvisionController[T]) Settings() controller.QSettings

Settings implements controller.QController interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳