chore: add filter to ListMachines

This commit is contained in:
Pavel Sviderski committed 2025-04-11 21:26:40 +10:00
1 parent 2f5a2c6344
commit 87331a9265
19 files changed
+129 -76

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ func (cli *Client) CreateVolume(
return resp, nil
}
// ListVolumes returns a list of all volumes on the cluster machines.
// ListVolumes returns a list of all volumes on the cluster machines that match the filter.
func (cli *Client) ListVolumes(ctx context.Context, filter *api.VolumeFilter) ([]api.MachineVolume, error) {
// Broadcast the volume list request to the specified machines in the filter or all machines if filter is nil.
var proxyMachines []string