This is a creation in Article, where the information may have evolved or changed.
Want to write some Golang program, temporarily not rent server.
Seven cattle were found to support golang development. Intend to try under:
My system is Debian. Windows should look something like this:
Previous experience in developing googleappengine. The seven Bulls also have similar command lines, but no interface.
You need to use the Qrsync command-line accessibility tool
Address: http://docs.qiniutek.com/v3/tools/qrsync/
Interestingly, this command-line tool was developed with Golang. So multiple operating systems are supported. Windows,linux,mac System.
a total of 3 files were extracted after the tool was decompressed: Qboxrsctl qrsb qrsync
1, the first to apply for seven cattle account, you can try 3 months. Create a profile based on your account number:
first set up a configuration file, such as called Conf.json, the contents are as follows:
{"Access_key": "Please apply your access key here", "Secret_key": "Dont Send your secret key to anyone", "bucket": "Bucket N Ame on Qiniu resource Storage "," Sync_dir ":" Local directory to Upload "," Debug_level ": 1}
Access_key,secret_key is configured for account assignment. Https://dev.qiniutek.com/account/keys
The bucket is the space name of the application (more puzzling) https://dev.qiniutek.com/buckets/
2, first of all to help set the domain name, otherwise it does not show: [new add domain name help]
3, the synchronization of the file directory, the execution of the command qrsync+ configuration file :
: ~/qbox$ qrsync./conf.json
Syncing/home/test/qbox = Golang ...
Progress File:/home/test/.qrsync/3o4-v4jo2xk4mxmiw7cdgg==.log
Sync done!
When there is Sync done! Description synchronization file succeeded
4, like I applied for a space go (no one uses it)
uploaded a index.html file, which can be accessed after synchronization: http://go.qiniudn.com/
5, suffering from the current API is not complete, can only grope across the river.
No research has been made at this time. Cond.