goshare

command module
v0.0.0-...-2f80a6f Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2016 License: MIT Imports: 13 Imported by: 0

README

GoShare

Easy share files on your own terms.

Why?

I started to move away from private cloud services and one feature I missed was the ability to easily share screenshots when I took them.

This made me think, what if I could share easily any kind of file...?

How it works

The process is simple and as follow:

  1. The script receives a path to a file.
  2. A random filename is generated (based on UUID4 spec).
  3. An SSH connection is made and the file is uploaded.
  4. You will see in the output the URL to your uploaded file.

Installation

go get -u github.com/fmartingr/goshare

Usage

goshare --help

Configuration

If you don't have a configuration file the first run will create one for you and then you only need to fill in he correct details.

{
  "SSH": {
    "User": "ssh username",
    "Host": "ssh host/ip",
    "Key": "~/.ssh/id_rsa",
    "Port": 22,
    "RemotePath": "path in the remote server to upload the file"
  },
  "ShareUrl": "http://share.example.com/%s"
}

Authors

  • Felipe Martin (fmartingr)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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