From 7f3025513fd0e7b3dd55cef4374f9230f64c5422 Mon Sep 17 00:00:00 2001 From: Carles Garcia Cabot <carles.garcia.cabot@cern.ch> Date: Wed, 12 Feb 2020 13:50:44 +0100 Subject: [PATCH] Migrate cli and cfg (except cmakelist) --- src/cli/fts-rest-ban | 16 ++++++++++++++++ src/cli/fts-rest-delegate | 16 ++++++++++++++++ src/cli/fts-rest-delete-submit | 16 ++++++++++++++++ src/cli/fts-rest-server-status | 16 ++++++++++++++++ src/cli/fts-rest-transfer-cancel | 16 ++++++++++++++++ src/cli/fts-rest-transfer-list | 16 ++++++++++++++++ src/cli/fts-rest-transfer-status | 16 ++++++++++++++++ src/cli/fts-rest-transfer-submit | 16 ++++++++++++++++ src/cli/fts-rest-whoami | 16 ++++++++++++++++ src/cli/fts3client.cfg | 4 ++++ 10 files changed, 148 insertions(+) create mode 100755 src/cli/fts-rest-ban create mode 100755 src/cli/fts-rest-delegate create mode 100755 src/cli/fts-rest-delete-submit create mode 100755 src/cli/fts-rest-server-status create mode 100755 src/cli/fts-rest-transfer-cancel create mode 100755 src/cli/fts-rest-transfer-list create mode 100755 src/cli/fts-rest-transfer-status create mode 100755 src/cli/fts-rest-transfer-submit create mode 100755 src/cli/fts-rest-whoami create mode 100644 src/cli/fts3client.cfg diff --git a/src/cli/fts-rest-ban b/src/cli/fts-rest-ban new file mode 100755 index 00000000..28069a41 --- /dev/null +++ b/src/cli/fts-rest-ban @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import Banning + +if __name__ == "__main__": + try: + banning = Banning() + banning(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-delegate b/src/cli/fts-rest-delegate new file mode 100755 index 00000000..3544829e --- /dev/null +++ b/src/cli/fts-rest-delegate @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import Delegator + +if __name__ == "__main__": + try: + delegator = Delegator() + delegator(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-delete-submit b/src/cli/fts-rest-delete-submit new file mode 100755 index 00000000..66addc52 --- /dev/null +++ b/src/cli/fts-rest-delete-submit @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import JobDeletionSubmitter + +if __name__ == "__main__": + try: + submitter = JobDeletionSubmitter() + submitter(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-server-status b/src/cli/fts-rest-server-status new file mode 100755 index 00000000..72a8045b --- /dev/null +++ b/src/cli/fts-rest-server-status @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import ServerStatus + +if __name__ == "__main__": + try: + banning = ServerStatus() + sys.exit(banning(sys.argv[1:])) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-transfer-cancel b/src/cli/fts-rest-transfer-cancel new file mode 100755 index 00000000..05ae0e84 --- /dev/null +++ b/src/cli/fts-rest-transfer-cancel @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import JobCanceller + +if __name__ == "__main__": + try: + canceller = JobCanceller() + canceller(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-transfer-list b/src/cli/fts-rest-transfer-list new file mode 100755 index 00000000..7f05309e --- /dev/null +++ b/src/cli/fts-rest-transfer-list @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import JobLister + +if __name__ == "__main__": + try: + lister = JobLister() + lister(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-transfer-status b/src/cli/fts-rest-transfer-status new file mode 100755 index 00000000..17bc485d --- /dev/null +++ b/src/cli/fts-rest-transfer-status @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import JobShower + +if __name__ == "__main__": + try: + shower = JobShower() + shower(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-transfer-submit b/src/cli/fts-rest-transfer-submit new file mode 100755 index 00000000..3a784c93 --- /dev/null +++ b/src/cli/fts-rest-transfer-submit @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import JobSubmitter + +if __name__ == "__main__": + try: + submitter = JobSubmitter() + submitter(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts-rest-whoami b/src/cli/fts-rest-whoami new file mode 100755 index 00000000..61bfeb35 --- /dev/null +++ b/src/cli/fts-rest-whoami @@ -0,0 +1,16 @@ +#!/usr/bin/env python3 +import logging +import sys +import traceback + +from fts3.cli import WhoAmI + +if __name__ == "__main__": + try: + whoami = WhoAmI() + whoami(sys.argv[1:]) + except Exception as e: + logging.critical(str(e)) + if logging.getLogger().getEffectiveLevel() == logging.DEBUG: + traceback.print_exc() + sys.exit(1) diff --git a/src/cli/fts3client.cfg b/src/cli/fts3client.cfg new file mode 100644 index 00000000..8ffce888 --- /dev/null +++ b/src/cli/fts3client.cfg @@ -0,0 +1,4 @@ +[Main] +endpoint: None +ukey: None +ucert: None -- GitLab