-
Notifications
You must be signed in to change notification settings - Fork 0
/
minios3.go
46 lines (44 loc) · 1.01 KB
/
minios3.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package cmd
import (
"github.com/urfave/cli"
)
func MinioS3StorageCmd() []cli.Flag {
return []cli.Flag{
cli.StringFlag{
Name: "s3-server",
Usage: "S3 server endpoint",
Value: "minio",
EnvVar: "MINIO_SERVICE_HOST",
},
cli.StringFlag{
Name: "s3-server-port",
Usage: "S3 server port",
EnvVar: "MINIO_SERVICE_PORT",
},
cli.StringFlag{
Name: "s3-bucket",
Usage: "S3 bucket where the data will be uploaded",
Required: true,
},
cli.StringFlag{
Name: "access-key, akey",
Usage: "access key for S3 server, required based on command run",
Required: true,
},
cli.StringFlag{
Name: "secret-key, skey",
Usage: "secret key for S3 server, required based on command run",
Required: true,
},
cli.StringFlag{
Name: "upload-path,p",
Usage: "full upload path inside the bucket",
Required: true,
},
cli.IntFlag{
Name: "expiration,exp",
Usage: "no of days after which objects in the bucket will be removed",
Value: 60,
},
}
}