Package com.artipie.rpm.http
Class RpmRemove
java.lang.Object
com.artipie.rpm.http.RpmRemove
- All Implemented Interfaces:
Slice
Rpm endpoint to remove packages accepts file checksum of the package to remove
in the X-Checksum-ALG header, where ALG is checksum algorithm. Header may be skipped with the
help of `force=true` request parameter.
The slice validates request data, saves file name to temp location and, if update
mode is
RepoConfig.UpdateMode.UPLOAD
and `skip_update` parameter is false (or absent),
initiates removing files process.
If request is not valid (see validate(Key, Pair)
),
`BAD_REQUEST` status is returned.- Since:
- 1.9
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.artipie.http.Slice
Slice.Wrap
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRpmRemove
(Storage asto, RepoConfig cnfg, Optional<Queue<ArtifactEvent>> events) Ctor. -
Method Summary
-
Field Details
-
TO_RM
Temp key for the packages to remove.
-
-
Constructor Details
-
RpmRemove
Ctor.- Parameters:
asto
- Asto storagecnfg
- Repo configevents
- Artifact events
-
-
Method Details