Skip to content

A file server designed to store temporary files. Files are automatically deleted after expiration to reduce storage usage.

License

Notifications You must be signed in to change notification settings

hellojukay/tempfile-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempfile-server

A tempfile server, designed for CI system, save file like logs , archive files and and artifacts, files will be shared between CI or mutil deparments。

Working in progress, not ready to use.

Install

go install github.com/yubo/tempfile-server@latest

Usage

Command line usage help

$ ./tempfile-server -h
Usage of ./tempfile-server:
  -access-key string
        S3 server access key
  -bucket string
        S3 server bucket name (default "upload")
  -dir string
        Server directory (default "./")
  -expiretime duration
        Expire time (default 8h0m0s)
  -external-url string
        Server external url (default "http://127.0.0.1:3456")
  -port int
        Port (default 3456)
  -secret-key string
        S3 server secret key
  -version
        Show version

How to upload file to server.

$ curl -T tempfile-server http://localhost:3456/aaa/bbb/c/
{
    "name": "tempfile-server",
    "path": "/aaa/bbb/c/tempfile-server",
    "sha1sum": "d61827094d019e123aefe57588916e85c79ce99f",
    "download_url": "http://127.0.0.1:3456/aaa/bbb/c/tempfile-server"
}

TODO :

  • support upload file to disk.
  • support s3.
  • support auto delete expired file from s3.

About

A file server designed to store temporary files. Files are automatically deleted after expiration to reduce storage usage.

Resources

License

Stars

Watchers

Forks

Packages

No packages published