aboutsummaryrefslogtreecommitdiff
path: root/weed/wdclient/masterclient_collection.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/wdclient/masterclient_collection.go')
-rw-r--r--weed/wdclient/masterclient_collection.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/wdclient/masterclient_collection.go b/weed/wdclient/masterclient_collection.go
index bdf791da0..1a9215a7e 100644
--- a/weed/wdclient/masterclient_collection.go
+++ b/weed/wdclient/masterclient_collection.go
@@ -21,3 +21,11 @@ func (mc *MasterClient) CollectionList(ctx context.Context) (resp *master_pb.Col
})
return
}
+
+func (mc *MasterClient) VolumeList(ctx context.Context) (resp *master_pb.VolumeListResponse, err error) {
+ err = withMasterClient(ctx, mc.currentMaster, mc.grpcDialOption, func(ctx context.Context, client master_pb.SeaweedClient) error {
+ resp, err = client.VolumeList(ctx, &master_pb.VolumeListRequest{})
+ return err
+ })
+ return
+}