Implemented neofs-go, neo-go, neofs-authmate lib

This commit is contained in:
Vladimir Avdeev 2022-09-19 20:00:46 +03:00 committed by Vladimir Avdeev
parent d3e5ee2231
commit c48f7b7ff2
25 changed files with 2306 additions and 0 deletions

25
cli/adm/storage_config.py Normal file
View file

@ -0,0 +1,25 @@
from cli.cli_command import NeofsCliCommand
from shell import CommandResult
class NeofsAdmStorageConfig(NeofsCliCommand):
def set(self, account: str, wallet: str) -> CommandResult:
"""Initialize basic neofs-adm configuration file.
Args:
account (str): wallet account
wallet (str): path to wallet
Returns:
str: Command string
"""
return self._execute(
"storage-config",
**{
param: param_value
for param, param_value in locals().items()
if param not in ["self"]
}
)