Add optional group flags to storage attach commands
This commit is contained in:
parent
b1781c33ce
commit
e362d47903
Binary file not shown.
@ -95,6 +95,14 @@ over time
|
|||||||
Name: "max-storage",
|
Name: "max-storage",
|
||||||
Usage: "(for init) limit storage space for sectors (expensive for very large paths!)",
|
Usage: "(for init) limit storage space for sectors (expensive for very large paths!)",
|
||||||
},
|
},
|
||||||
|
&cli.StringSliceFlag{
|
||||||
|
Name: "groups",
|
||||||
|
Usage: "path group names",
|
||||||
|
},
|
||||||
|
&cli.StringSliceFlag{
|
||||||
|
Name: "allow-to",
|
||||||
|
Usage: "group names to which data from this path can be sent (allow all if not specified)",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
|
nodeApi, closer, err := lcli.GetStorageMinerAPI(cctx)
|
||||||
@ -142,6 +150,8 @@ over time
|
|||||||
CanSeal: cctx.Bool("seal"),
|
CanSeal: cctx.Bool("seal"),
|
||||||
CanStore: cctx.Bool("store"),
|
CanStore: cctx.Bool("store"),
|
||||||
MaxStorage: uint64(maxStor),
|
MaxStorage: uint64(maxStor),
|
||||||
|
Groups: cctx.StringSlice("groups"),
|
||||||
|
AllowTo: cctx.StringSlice("allow-to"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if !(cfg.CanStore || cfg.CanSeal) {
|
if !(cfg.CanStore || cfg.CanSeal) {
|
||||||
|
@ -51,6 +51,14 @@ var storageAttachCmd = &cli.Command{
|
|||||||
Name: "max-storage",
|
Name: "max-storage",
|
||||||
Usage: "(for init) limit storage space for sectors (expensive for very large paths!)",
|
Usage: "(for init) limit storage space for sectors (expensive for very large paths!)",
|
||||||
},
|
},
|
||||||
|
&cli.StringSliceFlag{
|
||||||
|
Name: "groups",
|
||||||
|
Usage: "path group names",
|
||||||
|
},
|
||||||
|
&cli.StringSliceFlag{
|
||||||
|
Name: "allow-to",
|
||||||
|
Usage: "group names to which data from this path can be sent (allow all if not specified)",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
Action: func(cctx *cli.Context) error {
|
Action: func(cctx *cli.Context) error {
|
||||||
nodeApi, closer, err := lcli.GetWorkerAPI(cctx)
|
nodeApi, closer, err := lcli.GetWorkerAPI(cctx)
|
||||||
@ -98,6 +106,8 @@ var storageAttachCmd = &cli.Command{
|
|||||||
CanSeal: cctx.Bool("seal"),
|
CanSeal: cctx.Bool("seal"),
|
||||||
CanStore: cctx.Bool("store"),
|
CanStore: cctx.Bool("store"),
|
||||||
MaxStorage: uint64(maxStor),
|
MaxStorage: uint64(maxStor),
|
||||||
|
Groups: cctx.StringSlice("groups"),
|
||||||
|
AllowTo: cctx.StringSlice("allow-to"),
|
||||||
}
|
}
|
||||||
|
|
||||||
if !(cfg.CanStore || cfg.CanSeal) {
|
if !(cfg.CanStore || cfg.CanSeal) {
|
||||||
|
@ -1983,6 +1983,8 @@ OPTIONS:
|
|||||||
--seal (for init) use path for sealing (default: false)
|
--seal (for init) use path for sealing (default: false)
|
||||||
--store (for init) use path for long-term storage (default: false)
|
--store (for init) use path for long-term storage (default: false)
|
||||||
--max-storage value (for init) limit storage space for sectors (expensive for very large paths!)
|
--max-storage value (for init) limit storage space for sectors (expensive for very large paths!)
|
||||||
|
--groups value path group names
|
||||||
|
--allow-to value group names to which data from this path can be sent (allow all if not specified)
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -94,6 +94,8 @@ OPTIONS:
|
|||||||
--seal (for init) use path for sealing (default: false)
|
--seal (for init) use path for sealing (default: false)
|
||||||
--store (for init) use path for long-term storage (default: false)
|
--store (for init) use path for long-term storage (default: false)
|
||||||
--max-storage value (for init) limit storage space for sectors (expensive for very large paths!)
|
--max-storage value (for init) limit storage space for sectors (expensive for very large paths!)
|
||||||
|
--groups value path group names
|
||||||
|
--allow-to value group names to which data from this path can be sent (allow all if not specified)
|
||||||
--help, -h show help (default: false)
|
--help, -h show help (default: false)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user