Gopublish server.
# On first use you'll need to create a config file to connect to the server, just run:
$ gopublic init
Welcome to Gopublic
Gopublish server url, including http:// and the port if required: http://0.0.0.0:80
Testing connection...
Ok! Everything looks good.
Ready to go! Type `gopublic` to get a list of commands you can execute.
This will create a gopublic config file in ~/.gopublic.yml
# List all files
$ gopublic file list
[
{
"downloads": 1,
"file_name": "docker-compose-dev.yml",
"publishing_date": "2021-03-05",
"size": 1689,
"status": "available",
"uri": "b9ed888a-27c0-4b50-a26f-13105e38b957",
"version": 3
},
{
"downloads": 0,
"file_name": "docker-compose-dev.yml",
"publishing_date": "2021-03-05",
"size": 1689,
"status": "available",
"uri": "269bdb2a-1ad8-4f54-8bc3-be80db81d753",
"version": 2
},
{
"downloads": 1,
"file_name": "docker-compose-dev.yml",
"publishing_date": "2021-03-05",
"size": 1689,
"status": "available",
"uri": "028f89a8-c7f4-4c86-854a-a803ccd7a683",
"version": 1
}
]
# Search for either a file name or file ID
$ gopublic file search package.json
[
{
"downloads": 1,
"file_name": "package.json",
"publishing_date": "2021-03-04",
"size": 1747,
"status": "available",
"uri": "748d469f-7051-47f8-bfdf-af38cedb64c0",
"version": 1
}
]
# Get a token for publishing
$ gopublic token create myusername
Enter your GenOuest password
{
"token": "8be6204a-4424-457c-9cf8-0827e059bfea"
}
# Publish a file
gopublic file publish '/repos/myrepo_copy/docker-compose-dev.yml' --token 8be6204a-4424-457c-9cf8-0827e059bfea
{
"file_id": "46edab15-f482-4ec4-85a5-315d1045306c",
"message": "File registering. It should be ready soon"
}
Available under the MIT License