Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanReconciler ¶
type CleanReconciler struct {
// contains filtered or unexported fields
}
CleanReconciler is a struct that represents a set of cleaners used to clean deleted resources from onex db.
func NewCleanReconciler ¶
func NewCleanReconciler(client client.Client, ds store.IStore, cleaners ...Cleaner) *CleanReconciler
NewCleanReconciler return a cleaner set used to clean deleted resources from onex db.
func (*CleanReconciler) Start ¶
func (r *CleanReconciler) Start(ctx context.Context) error
Start starts the Cleaner and runs the SyncAll() method periodically.
func (*CleanReconciler) SyncAll ¶
func (r *CleanReconciler) SyncAll(ctx context.Context)
SyncAll runs the Sync() method of all registered cleaners.
type Cleaner ¶
type Cleaner interface {
// Name returns the name of the cleaner.
Name() string
// Delete performs the deletion operation.
Delete(ctx context.Context) error
// Initialize initializes the cleaner with the provided client and store client.
Initialize(client client.Client, storeClient store.IStore)
}
Cleaner interface defines the methods required for a cleaner implementation.
type MinerSet ¶
type MinerSet struct {
// contains filtered or unexported fields
}
func (*MinerSet) Initialize ¶
Click to show internal directories.
Click to hide internal directories.