Documentation ¶
Index ¶
- func SetupRunners(runMgr *WorkersManager, kubeMgr manager.Manager, db *sql.DB, cfg config.Config)
- type Controller
- type GenericWorker
- func (r *GenericWorker) GetNotSynced() (toCreateInService []types.StorageEntity, ...)
- func (r *GenericWorker) Run(ctx context.Context) (err error)
- func (r *GenericWorker) String() string
- func (r *GenericWorker) SyncSpecs(_ context.Context) error
- func (r *GenericWorker) SyncStatus(re types.RuntimeEntity, se types.StorageEntity) error
- type Runnable
- type WorkersManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRunners ¶
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(config *config.Config) (*Controller, error)
type GenericWorker ¶
type GenericWorker struct {
// contains filtered or unexported fields
}
func NewGenericWorker ¶
func NewGenericWorker( name string, launchPeriod time.Duration, syncer types.RuntimeAdapter, ) GenericWorker
func (*GenericWorker) GetNotSynced ¶
func (r *GenericWorker) GetNotSynced() ( toCreateInService []types.StorageEntity, toUpdateInService []types.StorageEntity, toDeleteInService []types.RuntimeEntity, toDeleteInDB []types.StorageEntity, err error)
func (*GenericWorker) SyncStatus ¶
func (r *GenericWorker) SyncStatus(re types.RuntimeEntity, se types.StorageEntity) error
type WorkersManager ¶
type WorkersManager struct {
// contains filtered or unexported fields
}
func NewWorkersManager ¶
func NewWorkersManager() *WorkersManager
func (*WorkersManager) AddRunnable ¶
func (r *WorkersManager) AddRunnable(runnable Runnable)
Click to show internal directories.
Click to hide internal directories.