From e219c65c9d65d2c90cd5b08f83c19b6436590b48 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Thu, 18 Dec 2014 11:00:17 +1300 Subject: [PATCH 1/2] Command list --- docs/internal/commands.md | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/internal/commands.md diff --git a/docs/internal/commands.md b/docs/internal/commands.md new file mode 100644 index 000000000..48badde5d --- /dev/null +++ b/docs/internal/commands.md @@ -0,0 +1,42 @@ +User Commands +============= +* put [bucket] [path] [file] +* put [bucket] [path] < stdin +* get [bucket] [path] > stdout +* verify-bucket [bucket] +* verify-object [bucket] [path] +* fix-bucket [bucket] +* fix-object [bucket] [path] + +stderr prints json on error + +System Commands +=============== +* initialize-repo +* split-stream +* merge-stream +* encode +* decode +* add-to-index +* add-to-store +* get-from-index +* get-from-store +* crc +* md5sum-stream +* verify-repo +* verify-object +* whitelist-failure + +Potential Workflow Pseudocode (single pass) +============================= +```sh` +add /bucket/name local-file + localFile : io.Reader = open(file) + md5sum-stream localFile + chunks = split-file localFile + for each chunk in chunks: + encode chunk + crc chunk + add-to-store name,chunk,length,crc + add-to-index name,chunkcount,md5,ts +``` From ab97179323c65da4af6f16381a877a36bd30a529 Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Fri, 19 Dec 2014 16:14:49 +1300 Subject: [PATCH 2/2] Adding markdown manpages --- docs/commands/minio-get.md | 17 +++++++++++++++++ docs/commands/minio-init.md | 17 +++++++++++++++++ docs/commands/minio-put.md | 19 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 docs/commands/minio-get.md create mode 100644 docs/commands/minio-init.md create mode 100644 docs/commands/minio-put.md diff --git a/docs/commands/minio-get.md b/docs/commands/minio-get.md new file mode 100644 index 000000000..28c3eb1ec --- /dev/null +++ b/docs/commands/minio-get.md @@ -0,0 +1,17 @@ +% MINIO(1) Minio Manual +% Minio +% December 2014 +# NAME +minio-get - Get an object from the store. + +# SYNOPSIS +**minio get** +BUCKET OBJECTPATH + +# DESCRIPTION +Gets an object from a given BUCKET at the given OBJECTPATH. The object is +returned on the standard output stream (STDOUT) + +# EXAMPLES + + $ minio get images /favorites/example.png > local_image.png diff --git a/docs/commands/minio-init.md b/docs/commands/minio-init.md new file mode 100644 index 000000000..9d0312cc6 --- /dev/null +++ b/docs/commands/minio-init.md @@ -0,0 +1,17 @@ +% MINIO(1) Minio Manual +% Minio +% December 2014 +# NAME +minio-init - Initialize a new minio repository. + +# SYNOPSIS +**minio init** +BUCKET + +# DESCRIPTION +Initialize a new bucket. BUCKET is the name of the new bucket. + +# EXAMPLES + + $ minio init images + diff --git a/docs/commands/minio-put.md b/docs/commands/minio-put.md new file mode 100644 index 000000000..7a11aa919 --- /dev/null +++ b/docs/commands/minio-put.md @@ -0,0 +1,19 @@ +% MINIO(1) Minio Manual +% Minio +% December 2014 +# NAME +minio-put - Put an object into the store. + +# SYNOPSIS +**minio put** +BUCKET OBJECTPATH [FILE] + +# DESCRIPTION +Adds an object to a given BUCKET at the given OBJECTPATH. An optional FILE may +be provided. If no FILE is provided, the standard input stream (STDIN) is used +instead. + +# EXAMPLES + + $ minio put images /favorites/example.png local_image.png + $ minio put images /favorites/example2.png < local_image2.png