Files
Proton-API-Bridge/volumes.go
Chun-Hung Tseng 6570484818 Initial commit
2023-06-23 08:58:08 +02:00

17 lines
276 B
Go

package proton_api_bridge
import (
"context"
"github.com/henrybear327/go-proton-api"
)
func listAllVolumes(ctx context.Context, c *proton.Client) ([]proton.Volume, error) {
volumes, err := c.ListVolumes(ctx)
if err != nil {
return nil, err
}
return volumes, nil
}