func (c *Cluster) GetVolume(nameOrID string) (volumetypes.Volume, error) {
    var volume *swarmapi.Volume

    if err := c.lockedManagerAction(func(ctx context.Context, state nodeState) error {
        v, err := getVolume(ctx, state.controlClient, nameOrID)