forked from TrueCloudLab/frostfs-node
[#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:
parent
8a2a096680
commit
d92b1d1bf8
2 changed files with 67 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue