controllers

package
v1.4.4 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2023 The OpenYurt Authors.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

View Source
const (
	EdgeXObjectName = "yurt-iot-dock/edgex-object.name"
)

Variables

This section is empty.

Functions

func DeleteDeviceProfilesOnControllerShutdown

func DeleteDeviceProfilesOnControllerShutdown(ctx context.Context, cli client.Client, opts *options.YurtIoTDockOptions) error

func DeleteDeviceServicesOnControllerShutdown

func DeleteDeviceServicesOnControllerShutdown(ctx context.Context, cli client.Client, opts *options.YurtIoTDockOptions) error

func DeleteDevicesOnControllerShutdown

func DeleteDevicesOnControllerShutdown(ctx context.Context, cli client.Client, opts *options.YurtIoTDockOptions) error

Types

type DeviceProfileReconciler

type DeviceProfileReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	NodePool  string
	Namespace string
	// contains filtered or unexported fields
}

DeviceProfileReconciler reconciles a DeviceProfile object

func (*DeviceProfileReconciler) Reconcile

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

Reconcile make changes to a deviceprofile object in EdgeX based on it in Kubernetes

func (*DeviceProfileReconciler) SetupWithManager

func (r *DeviceProfileReconciler) SetupWithManager(mgr ctrl.Manager, opts *options.YurtIoTDockOptions, edgexdock *edgexobj.EdgexDock) error

SetupWithManager sets up the controller with the Manager.

type DeviceProfileSyncer

type DeviceProfileSyncer struct {

	// Kubernetes client
	client.Client
	NodePool  string
	Namespace string
	// contains filtered or unexported fields
}

func NewDeviceProfileSyncer

func NewDeviceProfileSyncer(client client.Client, opts *options.YurtIoTDockOptions, edgexdock *edgexobj.EdgexDock) (DeviceProfileSyncer, error)

NewDeviceProfileSyncer initialize a New DeviceProfileSyncer

func (*DeviceProfileSyncer) NewDeviceProfileSyncerRunnable

func (dps *DeviceProfileSyncer) NewDeviceProfileSyncerRunnable() ctrlmgr.RunnableFunc

NewDeviceProfileSyncerRunnable initialize a controller-runtime manager runnable

func (*DeviceProfileSyncer) Run

func (dps *DeviceProfileSyncer) Run(stop <-chan struct{})

type DeviceReconciler

type DeviceReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	// which nodePool deviceController is deployed in
	NodePool  string
	Namespace string
	// contains filtered or unexported fields
}

DeviceReconciler reconciles a Device object

func (*DeviceReconciler) Reconcile

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

func (*DeviceReconciler) SetupWithManager

func (r *DeviceReconciler) SetupWithManager(mgr ctrl.Manager, opts *options.YurtIoTDockOptions, edgexdock *edgexobj.EdgexDock) error

SetupWithManager sets up the controller with the Manager.

type DeviceServiceReconciler

type DeviceServiceReconciler struct {
	client.Client
	Scheme *runtime.Scheme

	NodePool  string
	Namespace string
	// contains filtered or unexported fields
}

DeviceServiceReconciler reconciles a DeviceService object

func (*DeviceServiceReconciler) Reconcile

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

func (*DeviceServiceReconciler) SetupWithManager

func (r *DeviceServiceReconciler) SetupWithManager(mgr ctrl.Manager, opts *options.YurtIoTDockOptions, edgexdock *edgexobj.EdgexDock) error

SetupWithManager sets up the controller with the Manager.

type DeviceServiceSyncer

type DeviceServiceSyncer struct {
	// Kubernetes client
	client.Client

	NodePool  string
	Namespace string
	// contains filtered or unexported fields
}

func NewDeviceServiceSyncer

func NewDeviceServiceSyncer(client client.Client, opts *options.YurtIoTDockOptions, edgexdock *edgexobj.EdgexDock) (DeviceServiceSyncer, error)

func (*DeviceServiceSyncer) NewDeviceServiceSyncerRunnable

func (ds *DeviceServiceSyncer) NewDeviceServiceSyncerRunnable() ctrlmgr.RunnableFunc

func (*DeviceServiceSyncer) Run

func (ds *DeviceServiceSyncer) Run(stop <-chan struct{})

type DeviceSyncer

type DeviceSyncer struct {
	// kubernetes client
	client.Client
	// which nodePool deviceController is deployed in
	NodePool string

	Namespace string
	// contains filtered or unexported fields
}

func NewDeviceSyncer

func NewDeviceSyncer(client client.Client, opts *options.YurtIoTDockOptions, edgexdock *edgexobj.EdgexDock) (DeviceSyncer, error)

NewDeviceSyncer initialize a New DeviceSyncer

func (*DeviceSyncer) NewDeviceSyncerRunnable

func (ds *DeviceSyncer) NewDeviceSyncerRunnable() ctrlmgr.RunnableFunc

NewDeviceSyncerRunnable initialize a controller-runtime manager runnable

func (*DeviceSyncer) Run

func (ds *DeviceSyncer) Run(stop <-chan struct{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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