controller

package
v0.0.0-...-c573468 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BesuCRMap = CRMap[corev1alpha1.Besu, *corev1alpha1.Besu, *corev1alpha1.BesuList]{
	NewList:  func() *corev1alpha1.BesuList { return new(corev1alpha1.BesuList) },
	ItemsFor: func(list *corev1alpha1.BesuList) []corev1alpha1.Besu { return list.Items },
	AsObject: func(item *corev1alpha1.Besu) *corev1alpha1.Besu { return item },
}

allows generic functions by giving a mapping between the types and interfaces for the CR

View Source
var BesuGenesisCRMap = CRMap[corev1alpha1.BesuGenesis, *corev1alpha1.BesuGenesis, *corev1alpha1.BesuGenesisList]{
	NewList:  func() *corev1alpha1.BesuGenesisList { return new(corev1alpha1.BesuGenesisList) },
	ItemsFor: func(list *corev1alpha1.BesuGenesisList) []corev1alpha1.BesuGenesis { return list.Items },
	AsObject: func(item *corev1alpha1.BesuGenesis) *corev1alpha1.BesuGenesis { return item },
}

allows generic functions by giving a mapping between the types and interfaces for the CR

View Source
var PaladinCRMap = CRMap[corev1alpha1.Paladin, *corev1alpha1.Paladin, *corev1alpha1.PaladinList]{
	NewList:  func() *corev1alpha1.PaladinList { return new(corev1alpha1.PaladinList) },
	ItemsFor: func(list *corev1alpha1.PaladinList) []corev1alpha1.Paladin { return list.Items },
	AsObject: func(item *corev1alpha1.Paladin) *corev1alpha1.Paladin { return item },
}

allows generic functions by giving a mapping between the types and interfaces for the CR

allows generic functions by giving a mapping between the types and interfaces for the CR

allows generic functions by giving a mapping between the types and interfaces for the CR

allows generic functions by giving a mapping between the types and interfaces for the CR

allows generic functions by giving a mapping between the types and interfaces for the CR

allows generic functions by giving a mapping between the types and interfaces for the CR

Functions

This section is empty.

Types

type BesuGenesisReconciler

type BesuGenesisReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

BesuGenesisReconciler reconciles a BesuGenesis object

func (*BesuGenesisReconciler) Reconcile

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

Reconcile implements the logic when a BesuGenesis resource is created, updated, or deleted

func (*BesuGenesisReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type BesuReconciler

type BesuReconciler struct {
	client.Client

	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

BesuReconciler reconciles a Besu object

func (*BesuReconciler) Reconcile

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

Reconcile implements the logic when a Besu resource is created, updated, or deleted

func (*BesuReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type CRMap

type CRMap[CR any, PCR client.Object, CRL client.ObjectList] struct {
	NewList  func() CRL
	ItemsFor func(list CRL) []CR
	AsObject func(item *CR) PCR
}

This mapping object for each CR type between the CR, pointer to the CR, and list of items for the CR, lets us build generic functions.

type InFlight

type InFlight struct {
	// contains filtered or unexported fields
}

InFlight is a struct used to manage in flight requests for a unique identifier.

func NewInFlight

func NewInFlight() *InFlight

NewInFlight instanciates a InFlight structures.

func (*InFlight) Delete

func (db *InFlight) Delete(key string)

Delete removes the entry from the inFlight entries map. It doesn't return anything, and will do nothing if the specified key doesn't exist.

func (*InFlight) Insert

func (db *InFlight) Insert(key string) bool

Insert inserts the entry to the current list of inflight, request key is a unique identifier. Returns false when the key already exists.

func (*InFlight) IsQueued

func (db *InFlight) IsQueued(key string) bool

func (*InFlight) IsReady

func (db *InFlight) IsReady(key string) bool

type PaladinDomainReconciler

type PaladinDomainReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

PaladinDomainReconciler reconciles a PaladinDomain object

func (*PaladinDomainReconciler) Reconcile

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

func (*PaladinDomainReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PaladinReconciler

type PaladinReconciler struct {
	client.Client

	Scheme  *runtime.Scheme
	Changes *InFlight
	// contains filtered or unexported fields
}

PaladinReconciler reconciles a Paladin object

func (*PaladinReconciler) Reconcile

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

Reconcile implements the logic when a Paladin resource is created, updated, or deleted

func (*PaladinReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PaladinRegistrationReconciler

type PaladinRegistrationReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

PaladinRegistrationReconciler reconciles a PaladinRegistration object

func (*PaladinRegistrationReconciler) Reconcile

func (*PaladinRegistrationReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PaladinRegistryReconciler

type PaladinRegistryReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

PaladinRegistryReconciler reconciles a PaladinRegistry object

func (*PaladinRegistryReconciler) Reconcile

func (*PaladinRegistryReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type SmartContractDeploymentReconciler

type SmartContractDeploymentReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

SmartContractDeploymentReconciler reconciles a SmartContractDeployment object

func (*SmartContractDeploymentReconciler) Reconcile

func (*SmartContractDeploymentReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type TransactionInvokeReconciler

type TransactionInvokeReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

TransactionInvokeReconciler reconciles a TransactionInvoke object

func (*TransactionInvokeReconciler) Reconcile

func (*TransactionInvokeReconciler) SetupWithManager

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