device

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceReconciler

type DeviceReconciler struct {
	DeviceName        string
	DeviceAddress     string
	DataDir           string
	ManifestDir       string
	ExternalPort      int
	K3sProxyEnabled   *bool
	Docker            bool
	KubeletArgs       []string
	Devices           storage.Interface
	DeviceTokens      storage.Interface
	NetworkInterfaces storage.Interface
	DeviceDiscovery   *discovery.DeviceDiscovery
	IngressController *ingress.IngressController
	Shutdown          func() error
	Logger            *logrus.Entry
	client.Client
	// contains filtered or unexported fields
}

DeviceReconciler reconciles a Device object.

func (*DeviceReconciler) AddToScheme

func (r *DeviceReconciler) AddToScheme(s *runtime.Scheme) error

func (*DeviceReconciler) Reconcile

func (r *DeviceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err 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.

func (*DeviceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NetworkInterfaceReconciler

type NetworkInterfaceReconciler struct {
	DeviceName        string
	NetworkInterfaces []string
	Store             storage.Interface
	WifiPasswords     storage.Interface
	WifiNetworks      storage.Interface
	Wifi              *wifi.Wifi
	client.Client
	// contains filtered or unexported fields
}

NetworkInterfaceReconciler reconciles a Device object.

func (*NetworkInterfaceReconciler) AddToScheme

func (r *NetworkInterfaceReconciler) AddToScheme(s *runtime.Scheme) error

func (*NetworkInterfaceReconciler) Close

func (r *NetworkInterfaceReconciler) Close() error

func (*NetworkInterfaceReconciler) Reconcile

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

func (*NetworkInterfaceReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type NodeReconciler

type NodeReconciler struct {
	DeviceName  string
	DeviceStore storage.Interface
	K3sDir      string
	Shutdown    func() error
	client.Client
	// contains filtered or unexported fields
}

NodeReconciler reconciles a Node object.

func (*NodeReconciler) AddToScheme

func (r *NodeReconciler) AddToScheme(s *runtime.Scheme) error

func (*NodeReconciler) Reconcile

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

func (*NodeReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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