Documentation ¶
Index ¶
- Variables
- type Locker
- func (locker *Locker) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
- func (lock *Locker) Locked(ctx context.Context) (locked bool)
- func (lock *Locker) TryLock(ctx context.Context) bool
- func (lock *Locker) TryUnlock(ctx context.Context) bool
- func (lock *Locker) Unlock(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
View Source
var Locked = exit.Error{ Message: "instance is locked for administrative operations", ExitCode: exit.ExitGeneric, }
Functions ¶
This section is empty.
Types ¶
type Locker ¶
type Locker struct {
ingredient.Base
}
Locker provides facitilites for locking this WissKI instance
func (*Locker) Fetch ¶
func (locker *Locker) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error)
func (*Locker) Locked ¶
Locked checks if this WissKI is currently locked. If an error occurs, the instance is considered not locked.
Click to show internal directories.
Click to hide internal directories.