lega-uploader

command module
v1.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2020 License: MIT Imports: 12 Imported by: 0

README

lega-uploader

Build Status GoDoc CodeFactor Go Report Card codecov Dependabot Status DeepSource

Installation / Update

Linux
curl -fsSL https://raw.githubusercontent.com/uio-bmi/lega-uploader/master/install.sh | sudo sh
MacOS
curl -fsSL https://raw.githubusercontent.com/uio-bmi/lega-uploader/master/install.sh | sh
Windows

Go to the releases page and download the latest binary manually.

Configuration

Before using the app, make sure all the environment variables required for authentication are set:

export CENTRAL_EGA_USERNAME=...
export CENTRAL_EGA_PASSWORD=...
export ELIXIR_AAI_TOKEN=...

NB: ELIXIR_AAI_TOKEN has an expiration time of nearly two hours, so one would need to re-obtain and re-set it upon expiration.

Also, the tool is pre-configured to work with Norwegian Federated EGA instance: https://ega.elixir.no If you want to specify another instance, you can set LOCAL_EGA_INSTANCE_URL environment variable.

Usage

$ lega-uploader
lega-uploader [files | resumables | upload] <args>

 files:
  -l, --list    Lists uploaded files
  -d, --delete= Deletes uploaded file by name

 resumables:
  -l, --list    Lists resumable uploads
  -d, --delete= Deletes resumable upload by ID

 upload:
  -f, --file=FILE    File or folder to upload
  -r, --resume       Resumes interrupted upload

Documentation

Overview

Package main is the main package of lega-uploader command-line tool, containing "files", "resumables" and "uploads" commands implementations along with additional helper methods.

Directories

Path Synopsis
Package conf contains structure and methods to create/load configuration for the application.
Package conf contains structure and methods to create/load configuration for the application.
Package files contains structures and methods for listing or deleting uploaded files.
Package files contains structures and methods for listing or deleting uploaded files.
Package requests contains structure an helper methods for performing HTTP requests towards LocalEGA instance.
Package requests contains structure an helper methods for performing HTTP requests towards LocalEGA instance.
Package resuming contains structures and methods for listing or resuming uploads.
Package resuming contains structures and methods for listing or resuming uploads.
Package uploading contains structure and methods for uploading files towards LocalEGA instance.
Package uploading contains structure and methods for uploading files towards LocalEGA instance.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL