controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package controller contains methods used by all controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainReconciler

type ChainReconciler struct {
	ComponentConfig *config.ChainControllerConfiguration

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

ChainReconciler reconciles a Chain object.

func (*ChainReconciler) SetupWithManager

func (r *ChainReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type MinerReconciler

type MinerReconciler struct {
	DryRun          bool
	ProviderClient  kubernetes.Interface
	ProviderCluster cluster.Cluster
	RedisClient     *redis.Client
	ComponentConfig *minerconfig.MinerControllerConfiguration

	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

MinerReconciler reconciles a Miner object.

func (*MinerReconciler) SetupWithManager

func (r *MinerReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type MinerSetReconciler

type MinerSetReconciler struct {
	// WatchFilterValue is the label value used to filter events prior to reconciliation.
	WatchFilterValue string
}

MinerSetReconciler reconciles a MinerSet object.

func (*MinerSetReconciler) SetupWithManager

func (r *MinerSetReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

type NamespacedResourcesDeleterReconciler

type NamespacedResourcesDeleterReconciler struct {
	Client         clientset.Interface
	MetadataClient metadata.Interface
}

NamespacedResourcesDeleterReconciler is a reconciler used to delete a namespace with all resources in it.

func (*NamespacedResourcesDeleterReconciler) SetupWithManager

type SyncReconciler

type SyncReconciler struct {
	Store store.IStore
}

SyncReconciler sync onex resource to database.

func (*SyncReconciler) SetupWithManager

func (r *SyncReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error

Directories

Path Synopsis
apis
Package chain implements chain controller.
Package chain implements chain controller.
Package miner implements miner controller.
Package miner implements miner controller.

Jump to

Keyboard shortcuts

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