controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 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 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.
When there is a large amount of data in Etcd, there is a query bottleneck, especially with the List interface.
When there is a large amount of data in Etcd, there is a query bottleneck, especially with the List interface.

Jump to

Keyboard shortcuts

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