1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00
Files
mc/fs-options.go
Harshavardhana 3e5f2322df Implement 'mkdir'
2015-01-20 15:45:25 -08:00

61 lines
1.4 KiB
Go

/*
* Mini Object Storage, (C) 2014,2015 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package main
import (
"github.com/codegangsta/cli"
)
var Cp = cli.Command{
Name: "cp",
Usage: "",
Description: `Copies a local file or Object to another location locally or in S3.`,
Action: doFsCopy,
}
var Ls = cli.Command{
Name: "ls",
Usage: "",
Description: `List Objects and common prefixes under a prefix or all Buckets`,
Action: doFsList,
}
var Mb = cli.Command{
Name: "mkdir",
Usage: "",
Description: "Creates an S3 bucket",
Action: doFsMkdir,
}
var Sync = cli.Command{
Name: "sync",
Usage: "",
Description: "Syncs directories and S3 prefixes",
Action: doFsSync,
}
type fsOptions struct {
bucket string
body string
key string
isget bool
isput bool
}
func doFsSync(c *cli.Context) {
}