controllers

package
v0.0.0-...-5336895 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutomationReconciler

type AutomationReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

AutomationReconciler reconciles a Automation object

func (*AutomationReconciler) Reconcile

func (r *AutomationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Automation object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*AutomationReconciler) SetupWithManager

func (r *AutomationReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*AutomationReconciler) TriggerLogic

func (r *AutomationReconciler) TriggerLogic(ctx context.Context, trigger iotv1alpha1.AutomationSpec)

//period reconciler

type OCFDeviceBoardingReconciler

type OCFDeviceBoardingReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

OCFDeviceBoardingReconciler reconciles a OCFDeviceBoarding object

func (*OCFDeviceBoardingReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the OCFDeviceBoarding object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*OCFDeviceBoardingReconciler) SetupWithManager

func (r *OCFDeviceBoardingReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type OCFDeviceReconciler

type OCFDeviceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

OCFDeviceReconciler reconciles a OCFDevice object

func (*OCFDeviceReconciler) OCFDeviceOnboard

func (r *OCFDeviceReconciler) OCFDeviceOnboard()

func (*OCFDeviceReconciler) PeriodicReconcile

func (r *OCFDeviceReconciler) PeriodicReconcile()

func (*OCFDeviceReconciler) Reconcile

func (r *OCFDeviceReconciler) Reconcile(ctx context.Context, request ctrl.Request) (ctrl.Result, error)

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the OCFDevice object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*OCFDeviceReconciler) SetupWithManager

func (r *OCFDeviceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type OCFDeviceResourceReconciler

type OCFDeviceResourceReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

OCFDeviceResourceReconciler reconciles a OCFDeviceResource object

func (*OCFDeviceResourceReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the OCFDeviceResource object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile

func (*OCFDeviceResourceReconciler) SetupWithManager

func (r *OCFDeviceResourceReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RawOCFDevice

type RawOCFDevice struct {
	Details struct {
		DI   string   `json:"di"`
		RT   []string `json:"rt"`
		IF   []string `json:"if"`
		Name string   `json:"n"`
		DMN  *string  `json:"dmn"`
		DMNO string   `json:"dmno"`
		PIID string   `json:"piid"`
	} `json:"details"`
	ID      string `json:"id"`
	Name    string `json:"name"`
	Owned   bool   `json:"owned"`
	OwnerID string `json:"ownerID"`
}

structure of a discovered OCF device

type RawOCFDeviceResource

type RawOCFDeviceResource struct {
	Href string `json:"href"`
}

structure of raw device resources

type RawOCFDeviceResourceProperties

type RawOCFDeviceResourceProperties struct {
	If          []string `json:"if"`
	Rt          []string `json:"rt"`
	Name        string   `json:"name"`
	Value       *bool    `json:"value"`
	Units       string   `json:"units"`
	Measurement *float64 `json:"Measurement"`
}

structure of raw device resources

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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