-
Notifications
You must be signed in to change notification settings - Fork 224
/
tigris.go
62 lines (57 loc) · 1.4 KB
/
tigris.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package tigris
import (
"github.com/spf13/cobra"
"github.com/superfly/flyctl/internal/command"
"github.com/superfly/flyctl/internal/flag"
)
func New() (cmd *cobra.Command) {
const (
short = "Provision and manage Tigris object storage buckets"
long = short + "\n"
)
cmd = command.New("storage", short, long, nil)
cmd.Aliases = []string{"tigris"}
cmd.AddCommand(create(), update(), list(), dashboard(), destroy(), status())
return cmd
}
var SharedFlags = flag.Set{
flag.String{
Name: "shadow-access-key",
Description: "Shadow bucket access key",
},
flag.String{
Name: "shadow-secret-key",
Description: "Shadow bucket secret key",
},
flag.String{
Name: "shadow-region",
Description: "Shadow bucket region",
},
flag.String{
Name: "shadow-endpoint",
Description: "Shadow bucket endpoint",
},
flag.String{
Name: "shadow-name",
Description: "Shadow bucket name",
},
flag.Bool{
Name: "shadow-write-through",
Description: "Write objects through to the shadow bucket",
},
flag.Bool{
Name: "accelerate",
Hidden: true,
Description: "Cache objects on write in all regions",
},
flag.String{
Name: "website-domain-name",
Description: "Domain name for website",
Hidden: true,
},
flag.Bool{
Name: "public",
Shorthand: "p",
Description: "Objects in the bucket should be publicly accessible",
},
}