frostfs-node/cmd/neofs-cli/modules/object
Leonard Lyubich 8bba490c30 [#1933] cli: Support binary sessions
There is a need to support NeoFS-binary sessions along with JSON ones in
NeoFS CLI.

Provide generic `common.ReadBinaryOrJSON` functions which tries to
decode NeoFS-binary structure and falls back to JSON format. Use this
function in all places with token reading.

Signed-off-by: Leonard Lyubich <ctulhurider@gmail.com>
2022-10-24 17:45:22 +03:00
..
delete.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
get.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
hash.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
head.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
lock.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
put.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
range.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
root.go [#1910] .golangci.yml: Add godot linker 2022-10-18 15:08:26 +03:00
search.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00
util.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00