Documentation ¶
Index ¶
- Constants
- Variables
- func CheckBucket(svc *s3.S3, bucket string) error
- func Execute()
- func GetBucketPolicy(cmd *cobra.Command, args []string)
- func GetBucketRep(cmd *cobra.Command, args []string)
- func ListObjNew(cmd *cobra.Command, args []string)
- func ListObjRepInfo(cmd *cobra.Command, args []string)
- func UploadMultipart1(fd *os.File, fileSize int64, svc *s3.S3)
- func UploadMultipart2(fd *os.File, fileSize int64, svc *s3.S3)
- func UploadMultipart3(fd *os.File, fileSize int64, svc *s3.S3)
- type Counter
- type Report
- type ReportNumber
- type Resp
Constants ¶
View Source
const ( MinPartSize = 5 * 1024 * 1024 // 5 MB MaxFileSize = MinPartSize * 409.6 // 2 GB DefaultDownloadConcurrency = 5 Dummy = "/dev/null" )
View Source
const (
ISOLayout = "2006-01-02"
)
Variables ¶
View Source
var ( Debug bool RootCmd = &cobra.Command{ Use: "sc", Short: "Scality S3 frontend commands", Long: ``, TraverseChildren: true, } )
rootCmd represents the base command when called without any subcommands
View Source
var (
R bool
)
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetBucketPolicy ¶
func GetBucketRep ¶
func ListObjNew ¶
func ListObjRepInfo ¶
Types ¶
type Report ¶
type Report struct { Elapsed time.Duration Total int64 CompSize float64 OthSize float64 SkipSize float64 ReportMeta ReportNumber ReportBackend ReportNumber Skipped int64 }
type ReportNumber ¶
Source Files ¶
- cloneBucket.go
- common.go
- copyObject.go
- copyObjects.go
- deleteBucket.go
- deleteObject.go
- emptyBucket.go
- getBucketPolicy.go
- getBucketReplication.go
- getMultipart.go
- getObject.go
- getObjects.go
- listBucket.go
- listObjRepInfo.go
- listObject.go
- lockObject.go
- makeBucket.go
- putMultipart.go
- putObject.go
- putObjects.go
- root.go
- statBucket.go
- statObject.go
- statObjects.go
Click to show internal directories.
Click to hide internal directories.