Documentation ¶
Index ¶
- func IsLockingEnabledForMainControllers(config *config.LandscaperConfiguration) bool
- type LockCleaner
- type Locker
- func (l *Locker) LockDI(ctx context.Context, obj *metav1.PartialObjectMetadata) (*lsv1alpha1.SyncObject, lserrors.LsError)
- func (l *Locker) LockExecution(ctx context.Context, obj *metav1.PartialObjectMetadata) (*lsv1alpha1.SyncObject, lserrors.LsError)
- func (l *Locker) LockInstallation(ctx context.Context, obj *metav1.PartialObjectMetadata) (*lsv1alpha1.SyncObject, lserrors.LsError)
- func (l *Locker) NotLockedResult() (reconcile.Result, error)
- func (l *Locker) Unlock(ctx context.Context, syncObject *lsv1alpha1.SyncObject)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsLockingEnabledForMainControllers ¶
func IsLockingEnabledForMainControllers(config *config.LandscaperConfiguration) bool
Types ¶
type LockCleaner ¶
type LockCleaner struct {
// contains filtered or unexported fields
}
func NewLockCleaner ¶
func NewLockCleaner(lsClient client.Client) *LockCleaner
func (*LockCleaner) StartPeriodicalSyncObjectCleanup ¶
func (l *LockCleaner) StartPeriodicalSyncObjectCleanup(ctx context.Context, logger logging.Logger)
type Locker ¶
type Locker struct {
// contains filtered or unexported fields
}
func (*Locker) LockDI ¶
func (l *Locker) LockDI(ctx context.Context, obj *metav1.PartialObjectMetadata) (*lsv1alpha1.SyncObject, lserrors.LsError)
func (*Locker) LockExecution ¶
func (l *Locker) LockExecution(ctx context.Context, obj *metav1.PartialObjectMetadata) (*lsv1alpha1.SyncObject, lserrors.LsError)
func (*Locker) LockInstallation ¶
func (l *Locker) LockInstallation(ctx context.Context, obj *metav1.PartialObjectMetadata) (*lsv1alpha1.SyncObject, lserrors.LsError)
func (*Locker) Unlock ¶
func (l *Locker) Unlock(ctx context.Context, syncObject *lsv1alpha1.SyncObject)
Click to show internal directories.
Click to hide internal directories.