Commit Graph

4 Commits

Author SHA1 Message Date
Jan Rodák cc823a3d9a Fix ignore of Using a deprecated function, variable, constant or field (SA1019)
Signed-off-by: Jan Rodák <hony.com@seznam.cz>

Improve explanation of ignore deprecated code

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-06-19 11:11:17 +02:00
Miloslav Trmač c85ce57577 Convert all c/storage users of Locker to *lockfile.LockFile
This will allow us to benefit from new features.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-11-29 18:12:43 +01:00
Miloslav Trmač f0c936493d Modify pkg/lockfile to return a struct instead of an interface
Add lockfile.GetLockFile and lockfile.GetROLockFile (with upper-case
F, as opposed to existing methods with lower-case f) which return a
*LockFile struct, instead of the Locker interface.

This follows the general Go design heuristic: "return structs, accept
interfaces"; more importantly, it allows us to add more methods to the lock
object without breaking the Go API by extending a pre-existing interface.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2022-11-29 18:12:43 +01:00
Nalin Dahyabhai 6be1a52ed4 Move lockfiles to their own package
Move the lockfile implementation into a subpackage so that we can use it
in the devicemapper driver.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2019-07-02 11:14:04 -04:00