https://github.com/stenic/go-uploader
https://github.com/stenic/go-uploader
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stenic/go-uploader
- Owner: stenic
- License: mit
- Created: 2021-11-06T22:26:43.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-20T18:52:52.000Z (over 4 years ago)
- Last Synced: 2024-06-19T19:44:24.261Z (about 2 years ago)
- Language: Go
- Size: 51.8 KB
- Stars: 1
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Go-Uploader
Go-uploader is tool allowing you to upload a file to a set of services.
## Installation
```shell
# homebrew
brew install stenic/tap/go-uploader
# gofish
gofish rig add https://github.com/stenic/fish-food
gofish install github.com/stenic/fish-food/go-uploader
# scoop
scoop bucket add go-uploader https://github.com/stenic/scoop-bucket.git
scoop install go-uploader
# go
go install github.com/stenic/go-uploader@latest
# docker
docker pull ghcr.io/stenic/go-uploader:latest
# dockerfile
COPY --from=ghcr.io/stenic/go-uploader:latest /go-uploader /usr/local/bin/
```
> For even more options, check the [releases page](https://github.com/stenic/go-uploader/releases).
## Drivers
### Local
```sh
go-uploader upload examples/assets/testfile.txt local://.tmp/local/testfile.txt
```
### Ftp
```sh
go-uploader upload examples/assets/testfile.txt ftp://test:test@localhost:21/testfile.txt
```
### Minio
```sh
go-uploader upload examples/assets/testfile.txt minio://test:testtest@127.0.0.1:9000/bucket/testfile.txt
```
### Http/Https
```sh
go-uploader upload examples/assets/testfile.txt http+post://127.0.0.1:4444/files/testfile.txt
```