archivist

command module
v0.0.0-...-e0cea1a Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

README

Archivist

Archivist is a simple file-uploading service for applications. Essentailly, it provides a single endpoint which allows users to upload a single file to a backend file host. It was initially designed to only support Backblaze B2, but eventually, I assume it will be updated to allow more backends as necessary.

API
curl -X POST -H 'Content-Type: image/jpeg' -H 'Archivist-File-Name: whatever-you-want-the-backend-file-name-to-be.jpg' --data-binary "@your-file.jpg" http://archivist-url/

Response:

{
  "id": "4_z523eef997c94922f67b4031c_f109bec7495c4f827_d20191204_m004917_c000_v0001064_t0000",
  "media_type": "image/jpeg",
  "name": "whatever-you-want-the-backend-file-name-to-be.jpg",
  "sha1": "52a6943aaf1ea6827a8199aeb5bfad84b3b3f861",
  "size": 4759595
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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