mirror of
https://github.com/henrybear327/Proton-API-Bridge.git
synced 2026-01-01 11:48:39 -05:00
17 lines
276 B
Go
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
|
|
}
|