frostfs-node/cmd/neofs-cli/internal/commonflags
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
..
api.go [#1074] neofs-cli: Move common API flags to a separate package 2022-06-06 13:54:29 +03:00
expiration.go [#1612] neofs-cli: Unify expiration flags 2022-07-22 16:18:09 +03:00
flags.go [#1910] .golangci.yml: Add godot linker 2022-10-18 15:08:26 +03:00
json.go [#1323] neofs-cli: Reuse JSON flag for multiple commands 2022-06-24 10:33:22 +03:00
session.go [#1933] cli: Support binary sessions 2022-10-24 17:45:22 +03:00