[#1175] CLI: Implement command to lock the objects

Implement `lock` command and add it to `object` section. The command
accepts container argument (string `cid.ID`) and list of locked objects
(string `oid.ID` list). From the provided input `LOCK` object is
constructed and stored using NeoFS API protocol.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-02-16 18:56:16 +03:00 committed by LeL
parent 8a2a096680
commit d92b1d1bf8
2 changed files with 67 additions and 0 deletions

View file

@ -246,6 +246,7 @@ func init() {
objectHeadCmd,
objectHashCmd,
objectRangeCmd,
cmdObjectLock,
}
rootCmd.AddCommand(objectCmd)
@ -276,6 +277,7 @@ func init() {
initObjectHeadCmd()
initObjectHashCmd()
initObjectRangeCmd()
initCommandObjectLock()
}
type clientKeySession interface {