controllers

package
v0.0.0-...-4618709 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveNotifications = make(map[string]bool)

ActiveNotifications hold a map of active notification streams, identified by their CR NamespacedName (either CreateSubscription or EstablishSubscription). When the CR gets deleted, it is set to `false` and then removed from the map.

View Source
var ActiveStreams = make(map[string]bool)
View Source
var Sessions = make(map[string]*netconf.Session)

Sessions hold the active SSH session to Netconf servers. The key is the NamespacedName of the MountPoint object referred in the CR

Functions

func AddCommit

func AddCommit(mgr manager.Manager) error

AddCommit Add creates a new MountPoint Controller and adds it to the Manager.

func AddEditConfig

func AddEditConfig(mgr manager.Manager) error

AddEditConfig Add creates a new MountPoint Controller and adds it to the Manager.

func AddGet

func AddGet(mgr manager.Manager) error

AddGet Add creates a new MountPoint Controller and adds it to the Manager.

func AddGetConfig

func AddGetConfig(mgr manager.Manager) error

AddGetConfig Add creates a new MountPoint Controller and adds it to the Manager.

func AddLock

func AddLock(mgr manager.Manager) error

AddLock Add creates a new MountPoint Controller and adds it to the Manager.

func AddMountPoint

func AddMountPoint(mgr manager.Manager) error

AddMountPoint Add creates a new MountPoint Controller and adds it to the Manager.

func AddNotification

func AddNotification(mgr manager.Manager) error

AddNotification Add creates a new MountPoint Controller and adds it to the Manager.

func AddRPC

func AddRPC(mgr manager.Manager) error

AddRPC Add creates a new MountPoint Controller and adds it to the Manager.

func AddUnlock

func AddUnlock(mgr manager.Manager) error

AddUnlock Add creates a new MountPoint Controller and adds it to the Manager.

func CheckMountPointExists

func CheckMountPointExists(r util.ReconcilerBase, namespacedName types.NamespacedName) bool

CheckMountPointExists validates a MountPoint, defined by its namespacedName, exists

func ValidateXML

func ValidateXML(data string, dataStruct interface{}) error

ValidateXML checks a provided string can be properly unmarshall in the specified struct

Types

type CommitReconciler

type CommitReconciler struct {
	util.ReconcilerBase
}

CommitReconciler reconciles a Commit object

func (*CommitReconciler) Reconcile

func (r *CommitReconciler) 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.

type EditConfigReconciler

type EditConfigReconciler struct {
	util.ReconcilerBase
}

EditConfigReconciler reconciles a EditConfig object

func (*EditConfigReconciler) Reconcile

func (r *EditConfigReconciler) 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.

type GetConfigReconciler

type GetConfigReconciler struct {
	util.ReconcilerBase
}

GetConfigReconciler reconciles a GetConfig object

func (*GetConfigReconciler) Reconcile

func (r *GetConfigReconciler) 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.

type GetReconciler

type GetReconciler struct {
	util.ReconcilerBase
}

GetReconciler reconciles a Get object

func (*GetReconciler) Reconcile

func (r *GetReconciler) 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.

type LockReconciler

type LockReconciler struct {
	util.ReconcilerBase
}

LockReconciler reconciles a Lock object

func (*LockReconciler) Reconcile

func (r *LockReconciler) 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.

type MountPointReconciler

type MountPointReconciler struct {
	util.ReconcilerBase
}

MountPointReconciler reconciles a MountPoint object

func (*MountPointReconciler) Reconcile

func (r *MountPointReconciler) 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.

type NotificationReconciler

type NotificationReconciler struct {
	util.ReconcilerBase
	// contains filtered or unexported fields
}

NotificationReconciler reconciles a Notification object

func (*NotificationReconciler) Reconcile

func (r *NotificationReconciler) 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.

type RPCReconciler

type RPCReconciler struct {
	util.ReconcilerBase
}

RPCReconciler reconciles a RPC object

func (*RPCReconciler) Reconcile

func (r *RPCReconciler) 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.

type UnlockReconciler

type UnlockReconciler struct {
	util.ReconcilerBase
}

UnlockReconciler reconciles a Unlock object

func (*UnlockReconciler) Reconcile

func (r *UnlockReconciler) 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.

Jump to

Keyboard shortcuts

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