feat: handle pagination in bucket list
(#307)
This commit is contained in:
@ -156,6 +156,22 @@ func newBucketListCmd() cli.Command {
|
||||
EnvVar: "INFLUX_ORG",
|
||||
Destination: ¶ms.OrgName,
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "limit",
|
||||
Usage: "Total number of buckets to fetch from the server, or 0 to return all buckets",
|
||||
Destination: ¶ms.Limit,
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "offset",
|
||||
Usage: "Number of buckets to skip over in the list",
|
||||
Destination: ¶ms.Offset,
|
||||
},
|
||||
&cli.IntFlag{
|
||||
Name: "page-size",
|
||||
Usage: "Number of buckets to fetch per request to the server",
|
||||
Value: 20,
|
||||
Destination: ¶ms.PageSize,
|
||||
},
|
||||
),
|
||||
Action: func(ctx *cli.Context) error {
|
||||
api := getAPI(ctx)
|
||||
|
Reference in New Issue
Block a user